Browse Source

fixed previous commit

Fabien Potencier 14 years ago
parent
commit
2b4b3f83a5

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

@@ -34,6 +34,8 @@ class ProjectServiceContainer extends Container
     {
         $class = $this->getParameter('cla').'o'.$this->getParameter('ss');
         return $this->services['foo'] = new $class();
+
+        $this->applyInterfaceInjectors($instance);
     }
 
     /**

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

@@ -33,6 +33,8 @@ class ProjectServiceContainer extends Container
     protected function getBarService()
     {
         return $this->services['bar'] = $this->get('barFactory')->createBarClass();
+
+        $this->applyInterfaceInjectors($instance);
     }
 
     /**
@@ -46,6 +48,8 @@ class ProjectServiceContainer extends Container
     protected function getBarfactoryService()
     {
         return $this->services['barfactory'] = new \BarClassFactory();
+
+        $this->applyInterfaceInjectors($instance);
     }
 
     /**