8000 bug #17202 [FrameworkBundle] Don't log twice with the error handler (… · symfony/symfony@c60053e · GitHub
[go: up one dir, main page]

Skip to content

Commit c60053e

Browse files
bug #17202 [FrameworkBundle] Don't log twice with the error handler (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [FrameworkBundle] Don't log twice with the error handler | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16980 | License | MIT | Doc PR | - ping @Tobion @yapro does it work as expected with this patch? Commits ------- 5926ff2 [FrameworkBundle] Don't log twice with the error handler
2 parents 4ed54a3 + 5926ff2 commit c60053e

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