From e3ef9368df1f5e1097772833c37722e715f92b42 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 11 Dec 2012 09:31:58 +0100 Subject: [PATCH] [FrameworkBundle] tweaked previous merge --- .../DependencyInjection/Compiler/TwigLoaderPass.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php index 3d0775990f..075177d5eb 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php @@ -17,10 +17,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\Exception\LogicException; /** - * If there are any tagged loaders replace - * default filesystem loader with chain loader - * - * Add tagged loaders to chain loader + * Adds services tagged twig.loader as Twig loaders * * @author Daniel Leech */ @@ -45,9 +42,8 @@ class TwigLoaderPass implements CompilerPassInterface $chainLoader = $container->getDefinition('twig.loader.chain'); foreach (array_keys($loaderIds) as $id) { $chainLoader->addMethodCall('addLoader', array(new Reference($id))); - }; + } $container->setAlias('twig.loader', 'twig.loader.chain'); } } } -