Explorar o código

[FrameworkBundle] removed setEngine call as the Engine already does it automatically (and it also avoids a circular reference)

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
d21fb757b6

+ 0 - 1
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddTemplatingRenderersPass.php

@@ -18,7 +18,6 @@ class AddTemplatingRenderersPass implements CompilerPassInterface
         foreach ($container->findTaggedServiceIds('templating.renderer') as $id => $attributes) {
             if (isset($attributes[0]['alias'])) {
                 $renderers[$attributes[0]['alias']] = new Reference($id);
-                $container->getDefinition($id)->addMethodCall('setEngine', array(new Reference('templating.engine')));
             }
         }