浏览代码

[DependencyInjection] fixed a typo in PhpDumper

Bulat Shakirzyanov 14 年之前
父节点
当前提交
ff9e9ac315

+ 1 - 1
src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

@@ -161,7 +161,7 @@ EOF;
         }
 
         if (!$this->container->isFrozen() && count($this->container->getInterfaceInjectors()) > 0) {
-            $calls = sprintf("\n        \$this->applyInterfaceInjection(\$instance);\n");
+            $calls = sprintf("\n        \$this->applyIntrefaceInjectors(\$instance);\n");
         }
 
         return $calls;

+ 1 - 1
tests/Symfony/Tests/Component/DependencyInjection/Fixtures/php/services_interfaces-1.php

@@ -36,7 +36,7 @@ class ProjectServiceContainer extends Container implements TaggedContainerInterf
         $class = $this->getParameter('cla').'o'.$this->getParameter('ss');
         return $this->services['foo'] = new $class();
 
-        $this->applyInterfaceInjection($instance);
+        $this->applyIntrefaceInjectors($instance);
     }
 
     /**

+ 2 - 2
tests/Symfony/Tests/Component/DependencyInjection/Fixtures/php/services_interfaces-2.php

@@ -35,7 +35,7 @@ class ProjectServiceContainer extends Container implements TaggedContainerInterf
     {
         return $this->services['barFactory'] = new \BarClassFactory();
 
-        $this->applyInterfaceInjection($instance);
+        $this->applyIntrefaceInjectors($instance);
     }
 
     /**
@@ -50,7 +50,7 @@ class ProjectServiceContainer extends Container implements TaggedContainerInterf
     {
         return $this->services['bar'] = $this->get('barFactory')->createBarClass();
 
-        $this->applyInterfaceInjection($instance);
+        $this->applyIntrefaceInjectors($instance);
     }
 
     /**