Remove setting container.autowiring.strict_mode to true

This commit is contained in:
Nicolas Grekas
2018-11-10 16:46:52 +01:00
parent 3ad0ef21a0
commit be55b939ec
@@ -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';