do not remove the Twig ExceptionController service
This commit is contained in:
parent
faf2370a3d
commit
c9e560f1b7
@ -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');
|
||||
|
Reference in New Issue
Block a user