removed obsolete condition
This commit is contained in:
parent
c7f9baf8f4
commit
faf2370a3d
@ -27,9 +27,7 @@ class ExceptionListenerPass implements CompilerPassInterface
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!interface_exists('Symfony\Component\Templating\TemplateReferenceInterface')) {
|
$container->removeDefinition('twig.controller.exception');
|
||||||
$container->removeDefinition('twig.controller.exception');
|
|
||||||
}
|
|
||||||
|
|
||||||
// register the exception controller only if Twig is enabled and required dependencies do exist
|
// 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')) {
|
if (!class_exists('Symfony\Component\Debug\Exception\FlattenException') || !interface_exists('Symfony\Component\EventDispatcher\EventSubscriberInterface')) {
|
||||||
|
Reference in New Issue
Block a user