Skip to content

Commit e690730

Browse files
committed
Add container tracking to bundles.php so the container rebuilds when it
changes
1 parent 6a6b3f9 commit e690730

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

symfony/framework-bundle/3.3/src/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function registerBundles()
3636

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

0 commit comments

Comments
 (0)