Release 2.16 (#4780)
This commit is contained in:
@@ -121,7 +121,7 @@ class Kernel extends BaseKernel
|
||||
return $plugins;
|
||||
}
|
||||
|
||||
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
|
||||
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
|
||||
{
|
||||
$container->registerExtension(new AppExtension());
|
||||
|
||||
@@ -130,11 +130,12 @@ class Kernel extends BaseKernel
|
||||
$confDir = $this->getProjectDir() . '/config';
|
||||
|
||||
// using this one instead of $loader->load($confDir . '/packages/*' . self::CONFIG_EXTS, 'glob');
|
||||
// to get rid of the local.yaml from the list, we load it afterward explicit
|
||||
// to get rid of the local.yaml from the list: we load it afterward explicit
|
||||
$finder = (new Finder())
|
||||
->files()
|
||||
->in([$confDir . '/packages/'])
|
||||
->name('*' . self::CONFIG_EXTS)
|
||||
->notName('local.yaml')
|
||||
->sortByName()
|
||||
->followLinks()
|
||||
;
|
||||
@@ -145,7 +146,7 @@ class Kernel extends BaseKernel
|
||||
}
|
||||
|
||||
if (is_file($confDir . '/packages/local.yaml')) {
|
||||
$loader->load($confDir . '/packages/local.yaml', 'glob');
|
||||
$loader->load($confDir . '/packages/local.yaml');
|
||||
}
|
||||
$loader->load($confDir . '/services' . self::CONFIG_EXTS, 'glob');
|
||||
$loader->load($confDir . '/services_' . $this->environment . self::CONFIG_EXTS, 'glob');
|
||||
|
||||
Reference in New Issue
Block a user