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

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

Fix AddDependencyCallsCompilerPass when filtering out 'setTemplate'.
Thomas преди 13 години
родител
ревизия
16b7412ad6
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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;
             }