8000 [FrameworkBundle] Don't log twice with the error handler · symfony/symfony@90d493e · GitHub
[go: up one dir, main page]

Skip to content

Commit 90d493e

Browse files
nicolas-grekasxabbuh
authored andcommitted
[FrameworkBundle] Don't log twice with the error handler
1 parent 31aef7b commit 90d493e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 1 deletion
A5EB
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ public function load(array $configs, ContainerBuilder $container)
139139
}
140140

141141
if ($container->getParameter('kernel.debug')) {
142+
$definition->replaceArgument(2, -1 & ~(E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR | E_RECOVERABLE_ERROR));
143+
142144
$loader->load('debug.xml');
143145

144146
$definition = $container->findDefinition('http_kernel');
@@ -150,7 +152,7 @@ public function load(array $configs, ContainerBuilder $container)
150152
$container->setDefinition('debug.event_dispatcher.parent', $definition);
151153
$container->setAlias('event_dispatcher', 'debug.event_dispatcher');
152154
} else {
153-
$definition->replaceArgument(2, E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR);
155+
$definition->replaceArgument(1, null);
154156
}
155157

156158
$this->addClassesToCompile(array(

0 commit comments

Comments
 (0)
0