removed obsolete condition

This commit is contained in:
Fabien Potencier 2016-12-17 19:04:40 +01:00
parent c7f9baf8f4
commit faf2370a3d

View File

@ -27,9 +27,7 @@ class ExceptionListenerPass implements CompilerPassInterface
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
if (!class_exists('Symfony\Component\Debug\Exception\FlattenException') || !interface_exists('Symfony\Component\EventDispatcher\EventSubscriberInterface')) {