示例#1
0
文件: Main.php 项目: Warsaalk/Plinth
 private function loadConfig()
 {
     $defaultconfig = new Config(__APP_CONFIG_PROD);
     if ($this->component !== false && $this->component->hasConfig()) {
         $componentconfig = new Config($this->component->getConfigPath());
         if ($this->component->getMergeDefaultConfig()) {
             $config = $defaultconfig->merge($componentconfig);
         } else {
             $config = $componentconfig;
         }
     } else {
         $config = $defaultconfig;
     }
     $this->config = $config;
 }