[FrameworkBundle] Don't log twice with the error handler

This commit is contained in:
Nicolas Grekas 2015-12-31 17:39:50 +01:00 committed by Christian Flothmann
parent 31aef7ba79
commit 90d493ea97
1 changed files with 3 additions and 1 deletions

View File

@ -139,6 +139,8 @@ class FrameworkExtension extends Extension
}
if ($container->getParameter('kernel.debug')) {
$definition->replaceArgument(2, -1 & ~(E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR | E_RECOVERABLE_ERROR));
$loader->load('debug.xml');
$definition = $container->findDefinition('http_kernel');
@ -150,7 +152,7 @@ class FrameworkExtension extends Extension
$container->setDefinition('debug.event_dispatcher.parent', $definition);
$container->setAlias('event_dispatcher', 'debug.event_dispatcher');
} else {
$definition->replaceArgument(2, E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR);
$definition->replaceArgument(1, null);
}
$this->addClassesToCompile(array(