8000 do not remove the Twig ExceptionController service · symfony/symfony@c9e560f · GitHub
[go: up one dir, main page]

Skip to content

Commit c9e560f

Browse files
committed
do not remove the Twig ExceptionController service
1 parent faf2370 commit c9e560f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public function process(ContainerBuilder $container)
2727
return;
2828
}
2929

30-
$container->removeDefinition('twig.controller.exception');
31-
3230
// register the exception controller only if Twig is enabled and required dependencies do exist
3331
if (!class_exists('Symfony\Component\Debug\Exception\FlattenException') || !interface_exists('Symfony\Component\EventDispatcher\EventSubscriberInterface')) {
3432
$container->removeDefinition('twig.exception_listener');

0 commit comments

Comments
 (0)
0