Bläddra i källkod

Merge pull request #729 from Romain-Geissler/fix-dependency-calls-compiler-pass

Fix AddDependencyCallsCompilerPass when filtering out 'setTemplate'.
Thomas 13 år sedan
förälder
incheckning
16b7412ad6
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

+ 2 - 2
DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

@@ -233,8 +233,8 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
                 continue;
             }
 
-            if ($method[1] == 'setTemplate') {
-                $definedTemplates[$method[0]] = $method[1][0];
+            if ($method[0] == 'setTemplate') {
+                $definedTemplates[$method[1][0]] = $method[1][1];
                 continue;
             }