From 67b920aa779b0b4782eb8222d6255a20ca9074e1 Mon Sep 17 00:00:00 2001 From: Benoit GALATI Date: Mon, 19 Feb 2018 18:24:39 +0100 Subject: [PATCH] Tell user that container.autowiring.strict_mode can be deleted with Symfony 4.0+ --- symfony/framework-bundle/3.3/src/Kernel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/symfony/framework-bundle/3.3/src/Kernel.php b/symfony/framework-bundle/3.3/src/Kernel.php index 815d4b86..c9420adf 100644 --- a/symfony/framework-bundle/3.3/src/Kernel.php +++ b/symfony/framework-bundle/3.3/src/Kernel.php @@ -36,6 +36,8 @@ class Kernel extends BaseKernel protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) { + // Feel free to remove the "container.autowiring.strict_mode" parameter + // if you are using symfony/dependency-injection 4.0+ as it's the default behavior $container->setParameter('container.autowiring.strict_mode', true); $container->setParameter('container.dumper.inline_class_loader', true); $confDir = $this->getProjectDir().'/config';