[FrameworkBundle] Don't log twice with the error handler
This commit is contained in:
parent
31aef7ba79
commit
90d493ea97
@ -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(
|
||||
|
Reference in New Issue
Block a user