We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848efae commit b84b589Copy full SHA for b84b589
src/Core/ApplicationKernel.php
@@ -123,9 +123,14 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
123
$loader->load($this->getRootDir() . '/config/config_' . $this->getEnvironment() . '.yml');
124
$loader->load($this->getApplicationDir() . '/config/config_modules.yml');
125
126
- $twigConfigFile = $this->getApplicationDir() . '/config/packages/twig.yaml';
127
- if (file_exists($twigConfigFile)) {
128
- $loader->load($twigConfigFile);
+ $packagesDir = $this->getApplicationDir() . '/config/packages';
+
+ if (is_dir($packagesDir)) {
129
+ foreach (glob($packagesDir . '/*.{yaml,yml}') as $configFile) {
130
+ if (is_file($configFile)) {
131
+ $loader->load($configFile);
132
+ }
133
134
}
135
136
0 commit comments