Ejemplo n.º 1
0
 protected function loadValues()
 {
     $files = glob($this->configDir->append('*.conf.php'));
     $envFiles = glob($this->configDir->append('*.conf.' . $this->environment . '.php'));
     $configFiles = array_merge($files, $envFiles);
     $values = [];
     foreach ($configFiles as $file) {
         $values = array_merge($values, include $file);
     }
     foreach ($values as $key => $value) {
         $this->add($key, $value);
     }
 }