Skip to content

Commit 0c9e0bb

Browse files
committed
updating Kernel class based on some recipe changes
1 parent 070a985 commit 0c9e0bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Kernel.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
66
use Symfony\Component\Config\Loader\LoaderInterface;
7+
use Symfony\Component\Config\Resource\FileResource;
78
use Symfony\Component\DependencyInjection\ContainerBuilder;
89
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
910
use Symfony\Component\Routing\RouteCollectionBuilder;
@@ -36,6 +37,7 @@ public function registerBundles()
3637

3738
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
3839
{
40+
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
3941
// Feel free to remove the "container.autowiring.strict_mode" parameter
4042
// if you are using symfony/dependency-injection 4.0+ as it's the default behavior
4143
$container->setParameter('container.autowiring.strict_mode', true);

0 commit comments

Comments
 (0)