浏览代码

Fix AddDependencyCallsCompilerPass when filtering out 'setTemplate'.

Romain Geissler 13 年之前
父节点
当前提交
9c7249cb16
共有 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;
             }