[TwigBundle] fixed wrong rebase in #7373
This commit is contained in:
parent
5ae0c82b55
commit
6021873f82
@ -24,7 +24,7 @@ class ExtensionPass implements CompilerPassInterface
|
|||||||
if ($container->has('form.extension')) {
|
if ($container->has('form.extension')) {
|
||||||
$container->getDefinition('twig.extension.form')->addTag('twig.extension');
|
$container->getDefinition('twig.extension.form')->addTag('twig.extension');
|
||||||
$reflClass = new \ReflectionClass('Symfony\Bridge\Twig\Extension\FormExtension');
|
$reflClass = new \ReflectionClass('Symfony\Bridge\Twig\Extension\FormExtension');
|
||||||
$container->getDefinition('twig.loader')->addMethodCall('addPath', array(dirname(dirname($reflClass->getFileName())).'/Resources/views/Form'));
|
$container->getDefinition('twig.loader.filesystem')->addMethodCall('addPath', array(dirname(dirname($reflClass->getFileName())).'/Resources/views/Form'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($container->has('translator')) {
|
if ($container->has('translator')) {
|
||||||
|
Reference in New Issue
Block a user