Fabien Potencier пре 14 година
родитељ
комит
9f5253e460

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

@@ -67,7 +67,7 @@ class PhpDumper extends Dumper
      *
      * @param Object \$instance
      */
-    protected function applyIntrefaceInjectors(\$instance)
+    protected function applyInterfaceInjectors(\$instance)
     {
 
 EOF;
@@ -161,7 +161,7 @@ EOF;
         }
 
         if (!$this->container->isFrozen() && count($this->container->getInterfaceInjectors()) > 0) {
-            $calls = sprintf("\n        \$this->applyIntrefaceInjectors(\$instance);\n");
+            $calls = sprintf("\n        \$this->applyInterfaceInjectors(\$instance);\n");
         }
 
         return $calls;

+ 2 - 2
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->applyIntrefaceInjectors($instance);
+        $this->applyInterfaceInjectors($instance);
     }
 
     /**
@@ -73,7 +73,7 @@ class ProjectServiceContainer extends Container implements TaggedContainerInterf
      *
      * @param Object $instance
      */
-    protected function applyIntrefaceInjectors($instance)
+    protected function applyInterfaceInjectors($instance)
     {
         if ($instance instanceof \FooClass) {
             $instance->setBar('someValue');

+ 3 - 3
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->applyIntrefaceInjectors($instance);
+        $this->applyInterfaceInjectors($instance);
     }
 
     /**
@@ -50,7 +50,7 @@ class ProjectServiceContainer extends Container implements TaggedContainerInterf
     {
         return $this->services['bar'] = $this->get('barFactory')->createBarClass();
 
-        $this->applyIntrefaceInjectors($instance);
+        $this->applyInterfaceInjectors($instance);
     }
 
     /**
@@ -74,7 +74,7 @@ class ProjectServiceContainer extends Container implements TaggedContainerInterf
      *
      * @param Object $instance
      */
-    protected function applyIntrefaceInjectors($instance)
+    protected function applyInterfaceInjectors($instance)
     {
         if ($instance instanceof \BarClass) {
             $instance->setFoo('someValue');