Skip to content

Commit 2ef2264

Browse files
committed
minor symfony#20974 [TwigBundle] do not remove the Twig ExceptionController service (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [TwigBundle] do not remove the Twig ExceptionController service | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | follow up of symfony#20799 Commits ------- c9e560f do not remove the Twig ExceptionController service
2 parents faf2370 + c9e560f commit 2ef2264

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)