소스 검색

fixed service first argument

jfsimon 14 년 전
부모
커밋
9679029126
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      DependencyInjection/AddDependencyCallsPass.php

+ 3 - 1
DependencyInjection/AddDependencyCallsPass.php

@@ -46,6 +46,8 @@ class AddDependencyCallsPass implements CompilerPassInterface
             $arguments = $definition->getArguments();
             if (preg_match('/%(.*)%/', $arguments[0], $matches)) {
                 $class = $container->getParameter($matches[1]);
+            } else {
+                $class = $arguments[0];
             }
 
             $admins[] = $id;
@@ -123,7 +125,7 @@ class AddDependencyCallsPass implements CompilerPassInterface
         }
 
         $definition->addMethodCall('configure');
-        
+
         return $definition;
     }
 }