Removed container.autowiring.strict_mode from kernel

This commit is contained in:
Kevin Frantz 2018-11-23 18:40:11 +01:00
parent baca225775
commit 77122f481e

View File

@ -38,9 +38,6 @@ class Kernel extends BaseKernel
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
{ {
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); $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); $container->setParameter('container.dumper.inline_class_loader', true);
$confDir = $this->getProjectDir().'/config'; $confDir = $this->getProjectDir().'/config';