Skip to content

Commit 67b920a

Browse files
committed
Tell user that container.autowiring.strict_mode can be deleted with Symfony 4.0+
1 parent 3fe71d7 commit 67b920a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public function registerBundles()
3636

3737
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
3838
{
39+
// Feel free to remove the "container.autowiring.strict_mode" parameter
40+
// if you are using symfony/dependency-injection 4.0+ as it's the default behavior
3941
$container->setParameter('container.autowiring.strict_mode', true);
4042
$container->setParameter('container.dumper.inline_class_loader', true);
4143
$confDir = $this->getProjectDir().'/config';

0 commit comments

Comments
 (0)