File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class Kernel
1010{
1111 private $ bundlesInitialized = false ;
1212 private $ containerInitialized = false ;
13+ private $ container ;
14+ private $ bundles ;
1315
1416 public function __construct ($ env , $ debug )
1517 {
@@ -18,11 +20,13 @@ public function __construct($env, $debug)
1820 public function initializeBundles ()
1921 {
2022 $ this ->bundlesInitialized = true ;
23+ $ this ->bundles = [];
2124 }
2225
2326 public function initializeContainer ()
2427 {
2528 $ this ->containerInitialized = true ;
29+ $ this ->container = new Container ();
2630 }
2731
2832 public function getBundles ()
@@ -31,7 +35,7 @@ public function getBundles()
3135 throw new \Exception ('Bundles not initialized ' );
3236 }
3337
34- return [] ;
38+ return $ this -> bundles ;
3539 }
3640
3741 public function getContainer ()
@@ -40,7 +44,7 @@ public function getContainer()
4044 throw new \Exception ('Container not initialized ' );
4145 }
4246
43- return new Container () ;
47+ return $ this -> container ;
4448 }
4549
4650 public function handle (Request $ request )
You can’t perform that action at this time.
0 commit comments