[WebProfilerBundle] fix version check

This commit is contained in:
Nicolas Grekas 2018-04-04 14:14:22 +02:00
parent c362622cf0
commit 946eefa284

View File

@ -57,7 +57,7 @@ class WebProfilerExtension extends Extension
$container->setParameter('web_profiler.debug_toolbar.mode', $config['toolbar'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED);
}
if (Kernel::VERSION_ID >= 30408 || Kernel::VERSION_ID >= 40008) {
if (Kernel::VERSION_ID >= 40008 || (Kernel::VERSION_ID >= 30408 && Kernel::VERSION_ID < 40000)) {
$container->getDefinition('debug.file_link_formatter')
->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
}