From c9e560f1b76603d5a72f3652d8aa6f92e4d24535 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 17 Dec 2016 22:15:07 +0100 Subject: [PATCH] do not remove the Twig ExceptionController service --- .../DependencyInjection/Compiler/ExceptionListenerPass.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php index be447ab33c..b7ebb2a406 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php @@ -27,8 +27,6 @@ class ExceptionListenerPass implements CompilerPassInterface return; } - $container->removeDefinition('twig.controller.exception'); - // register the exception controller only if Twig is enabled and required dependencies do exist if (!class_exists('Symfony\Component\Debug\Exception\FlattenException') || !interface_exists('Symfony\Component\EventDispatcher\EventSubscriberInterface')) { $container->removeDefinition('twig.exception_listener');