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

Skip to content

Commit 5926ff2

Browse files
[FrameworkBundle] Don't log twice with the error handler
1 parent eb7f2f7 commit 5926ff2

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
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ public function load(array $configs, ContainerBuilder $container)
143143
}
144144

145145
if ($container->getParameter('kernel.debug')) {
146+
$definition->replaceArgument(2, -1 & ~(E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR | E_RECOVERABLE_ERROR));
147+
146148
$loader->load('debug.xml');
147149

148150
$definition = $container->findDefinition('http_kernel');
@@ -154,7 +156,7 @@ public function load(array $configs, ContainerBuilder $container)
154156
$container->setDefinition('debug.event_dispatcher.parent', $definition);
155157
$container->setAlias('event_dispatcher', 'debug.event_dispatcher');
156158
} else {
157-
$definition->replaceArgument(2, E_COMPILE_ERROR | E_PARSE | E_ERROR | E_CORE_ERROR);
159+
$definition->replaceArgument(1, null);
158160
}
159161

160162
$this->addClassesToCompile(array(

0 commit comments

Comments
 (0)
0