Пример #1
0
 /**
  * Loads configuration files from the installed components.
  *
  * @return void
  */
 protected function loadComponentsConfigFiles()
 {
     // First we load the component's config files
     $installedComponents = $this->getInstalledComponents();
     foreach ($installedComponents as $componentName => $componentPath) {
         $file = $componentPath . '/frenzy/config.yml';
         if (!is_file($file)) {
             $this->_config->set('components.' . $componentName, []);
             continue;
         }
         $this->_config->load(['file' => $file, 'loadInKey' => 'components.' . $componentName, 'processImports' => true]);
     }
 }