stop config.yml on loading again

This commit is contained in:
johannes Heimbach 2018-04-29 17:21:27 +02:00
parent a30dcbc814
commit c12b50dc1b

View File

@ -894,7 +894,7 @@ class Pico
// merge $config of config/*.yml files // merge $config of config/*.yml files
$configFiles = $this->getFilesGlob($this->getConfigDir() . '*.yml'); $configFiles = $this->getFilesGlob($this->getConfigDir() . '*.yml');
foreach ($configFiles as $configFile) { foreach ($configFiles as $configFile) {
if ($configFile !== 'config.yml') { if ($configFile !== $this->getConfigDir() . 'config.yml') {
$this->config += $loadConfigClosure($configFile); $this->config += $loadConfigClosure($configFile);
} }
} }