Tell user that container.autowiring.strict_mode can be deleted with Symfony 4.0+

This commit is contained in:
Benoit GALATI
2018-02-21 22:04:09 +01:00
committed by Benoit Galati
parent 3fe71d785c
commit 67b920aa77
@@ -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';