Преглед на файлове

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

Fabien Potencier преди 14 години
родител
ревизия
d21fb757b6
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddTemplatingRenderersPass.php

+ 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')));
             }
         }