From 90d493ea9712f4684220d041f9fda14b5a09af71 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 31 Dec 2015 17:39:50 +0100 Subject: [PATCH] [FrameworkBundle] Don't log twice with the error handler --- .../DependencyInjection/FrameworkExtension.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index da54b51dea..462a802a20 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -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(