File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ trait ContainerAwareTrait
24
24
protected $ container ;
25
25
26
26
/**
27
- * Sets the Container associated with this Controller .
27
+ * Sets the Container.
28
28
*
29
- * @param ContainerInterface $container A ContainerInterface instance
29
+ * @param ContainerInterface|null $container A ContainerInterface instance or null
30
30
*/
31
31
public function setContainer (ContainerInterface $ container = null )
32
32
{
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \HttpKernel \Bundle ;
13
13
14
- use Symfony \Component \DependencyInjection \ContainerAware ;
14
+ use Symfony \Component \DependencyInjection \ContainerInterface ;
15
15
use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
16
use Symfony \Component \DependencyInjection \Container ;
17
17
use Symfony \Component \Console \Application ;
24
24
*
25
25
* @author Fabien Potencier <[email protected] >
26
26
*/
27
- abstract class Bundle extends ContainerAware implements BundleInterface
27
+ abstract class Bundle implements BundleInterface
28
28
{
29
+ /**
30
+ * @var ContainerInterface
31
+ */
32
+ protected $ container ;
29
33
protected $ name ;
30
34
protected $ extension ;
31
35
protected $ path ;
@@ -58,6 +62,16 @@ public function build(ContainerBuilder $container)
58
62
{
59
63
}
60
64
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
+
61
75
/**
62
76
* Returns the bundle's container extension.
63
77
*
You can’t perform that action at this time.
0 commit comments