浏览代码

[DependencyInjection] Added TaggedContainerInterface to signature of generated container classes

Kris Wallsmith 14 年之前
父节点
当前提交
ef4f61bb9f

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

@@ -270,6 +270,7 @@ EOF;
 <?php
 
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\DependencyInjection\TaggedContainerInterface;
 use Symfony\Component\DependencyInjection\Container;
 use Symfony\Component\DependencyInjection\Reference;
 use Symfony\Component\DependencyInjection\Parameter;
@@ -281,7 +282,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\\$bagClass;
  * This class has been auto-generated
  * by the Symfony Dependency Injection Component.
  */
-class $class extends $baseClass
+class $class extends $baseClass implements TaggedContainerInterface
 {
     protected \$shared = array();
 

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

@@ -1,6 +1,7 @@
 <?php
 
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\DependencyInjection\TaggedContainerInterface;
 use Symfony\Component\DependencyInjection\Container;
 use Symfony\Component\DependencyInjection\Reference;
 use Symfony\Component\DependencyInjection\Parameter;
@@ -12,7 +13,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
  * This class has been auto-generated
  * by the Symfony Dependency Injection Component.
  */
-class Container extends AbstractContainer
+class Container extends AbstractContainer implements TaggedContainerInterface
 {
     protected $shared = array();
 

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

@@ -1,6 +1,7 @@
 <?php
 
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\DependencyInjection\TaggedContainerInterface;
 use Symfony\Component\DependencyInjection\Container;
 use Symfony\Component\DependencyInjection\Reference;
 use Symfony\Component\DependencyInjection\Parameter;
@@ -12,7 +13,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
  * This class has been auto-generated
  * by the Symfony Dependency Injection Component.
  */
-class ProjectServiceContainer extends Container
+class ProjectServiceContainer extends Container implements TaggedContainerInterface
 {
     protected $shared = array();
 

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

@@ -1,6 +1,7 @@
 <?php
 
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\DependencyInjection\TaggedContainerInterface;
 use Symfony\Component\DependencyInjection\Container;
 use Symfony\Component\DependencyInjection\Reference;
 use Symfony\Component\DependencyInjection\Parameter;
@@ -12,7 +13,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
  * This class has been auto-generated
  * by the Symfony Dependency Injection Component.
  */
-class ProjectServiceContainer extends Container
+class ProjectServiceContainer extends Container implements TaggedContainerInterface
 {
     protected $shared = array();
 

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

@@ -1,6 +1,7 @@
 <?php
 
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\DependencyInjection\TaggedContainerInterface;
 use Symfony\Component\DependencyInjection\Container;
 use Symfony\Component\DependencyInjection\Reference;
 use Symfony\Component\DependencyInjection\Parameter;
@@ -12,7 +13,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
  * This class has been auto-generated
  * by the Symfony Dependency Injection Component.
  */
-class ProjectServiceContainer extends Container
+class ProjectServiceContainer extends Container implements TaggedContainerInterface
 {
     protected $shared = array();