File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
src/Symfony/Component/HttpKernel/Bundle Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \HttpKernel \Bundle ;
1313
14- use Symfony \Component \DependencyInjection \ContainerAware ;
14+ use Symfony \Component \DependencyInjection \ContainerInterface ;
1515use Symfony \Component \DependencyInjection \ContainerBuilder ;
1616use Symfony \Component \DependencyInjection \Container ;
1717use Symfony \Component \Console \Application ;
2424 *
2525 * @author Fabien Potencier <[email protected] > 2626 */
27- abstract class Bundle extends ContainerAware implements BundleInterface
27+ abstract class Bundle implements BundleInterface
2828{
29+ /**
30+ * @var ContainerInterface
31+ */
32+ protected $ container ;
2933 protected $ name ;
3034 protected $ extension ;
3135 protected $ path ;
@@ -58,6 +62,16 @@ public function build(ContainerBuilder $container)
5862 {
5963 }
6064
65+ /**
66+ * Sets the container.
67+ *
68+ * @param ContainerInterface|null $container A ContainerInterface instance or null
69+ */
70+ public function setContainer (ContainerInterface $ container = null )
71+ {
72+ $ this ->container = $ container ;
73+ }
74+
6175 /**
6276 * Returns the bundle's container extension.
6377 *
You can’t perform that action at this time.
0 commit comments