Merge pull request #429 from JHeimbach/fix-configloading

stop config.yml on loading again
pico-3.0-alpha
Daniel Rudolf 7 years ago committed by GitHub
commit af237c1d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/Pico.php

@ -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);
} }
} }

Loading…
Cancel
Save