From be55b939ec621c17b50acd27950e27b6086aa25e Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sat, 10 Nov 2018 16:46:52 +0100 Subject: [PATCH] Remove setting container.autowiring.strict_mode to true --- symfony/framework-bundle/4.2/src/Kernel.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/symfony/framework-bundle/4.2/src/Kernel.php b/symfony/framework-bundle/4.2/src/Kernel.php index 53e75b37..680ccadd 100644 --- a/symfony/framework-bundle/4.2/src/Kernel.php +++ b/symfony/framework-bundle/4.2/src/Kernel.php @@ -40,9 +40,6 @@ class Kernel extends BaseKernel protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) { $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); - // 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';