Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad5eb7e

Browse files
committed
[TwigBundle] fixed compiler pass error
1 parent de7b11e commit ad5eb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function process(ContainerBuilder $container)
2727
$container->getDefinition('twig.loader')->addMethodCall('addPath', array(dirname(dirname($reflClass->getFileName())).'/Resources/views/Form'));
2828
}
2929

30-
if (false === $container->has('translator')) {
30+
if ($container->has('translator')) {
3131
$container->getDefinition('twig.extension.trans')->addTag('twig.extension');
3232
}
3333
}

0 commit comments

Comments
 (0)