File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Symfony \Bundle \FrameworkBundle \Kernel \MicroKernelTrait ;
6
6
use Symfony \Component \Config \Loader \LoaderInterface ;
7
+ use Symfony \Component \Config \Resource \FileResource ;
7
8
use Symfony \Component \DependencyInjection \ContainerBuilder ;
8
9
use Symfony \Component \HttpKernel \Kernel as BaseKernel ;
9
10
use Symfony \Component \Routing \RouteCollectionBuilder ;
@@ -36,6 +37,7 @@ public function registerBundles()
36
37
37
38
protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader )
38
39
{
40
+ $ container ->addResource (new FileResource ($ this ->getProjectDir ().'/config/bundles.php ' ));
39
41
// Feel free to remove the "container.autowiring.strict_mode" parameter
40
42
// if you are using symfony/dependency-injection 4.0+ as it's the default behavior
41
43
$ container ->setParameter ('container.autowiring.strict_mode ' , true );
You can’t perform that action at this time.
0 commit comments