fixed condition
This commit is contained in:
parent
0fa19bde9f
commit
cf440f260f
@ -78,7 +78,7 @@ class ExtensionPass implements CompilerPassInterface
|
||||
$container->setDefinition('twig.loader.filesystem', $loader);
|
||||
}
|
||||
|
||||
if ($container->has('request')) {
|
||||
if (method_exists('Symfony\Bridge\Twig\AppVariable', 'setContainer')) {
|
||||
// we are on Symfony <3.0, where the setContainer method exists
|
||||
$container->getDefinition('twig.app_variable')->addMethodCall('setContainer', array(new Reference('service_container')));
|
||||
}
|
||||
|
Reference in New Issue
Block a user