Skip to content

Commit faf2370

Browse files
committed
removed obsolete condition
1 parent c7f9baf commit faf2370

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExceptionListenerPass.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ public function process(ContainerBuilder $container)
2727
return;
2828
}
2929

30-
if (!interface_exists('Symfony\Component\Templating\TemplateReferenceInterface')) {
31-
$container->removeDefinition('twig.controller.exception');
32-
}
30+
$container->removeDefinition('twig.controller.exception');
3331

3432
// register the exception controller only if Twig is enabled and required dependencies do exist
3533
if (!class_exists('Symfony\Component\Debug\Exception\FlattenException') || !interface_exists('Symfony\Component\EventDispatcher\EventSubscriberInterface')) {

0 commit comments

Comments
 (0)