do not remove the Twig ExceptionController service

This commit is contained in:
Christian Flothmann 2016-12-17 22:15:07 +01:00
parent faf2370a3d
commit c9e560f1b7

View File

@ -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');