/**
  * Устанавливает настрйки фреймворка
  *
  * @return array
  */
 public function setConfig($appConfig, $siteConfig)
 {
     if (!is_array($appConfig)) {
         AbcError::error('Application\'s configuration must be an array');
     }
     if (!is_array($siteConfig)) {
         AbcError::error('Site configuration must be an array');
     }
     $this->config = array_replace_recursive($appConfig, $siteConfig);
     $this->config = $this->normaliseConfig($this->config);
     $settings = Settings::get();
     $this->config = array_replace_recursive($settings, $this->config);
 }
Пример #2
0
 /**
  * И теперь заменяем сеттинги конфигами
  *
  * @return array
  */
 protected function usersSettingsConfig($config)
 {
     $settings = \ABC\Abc\Resourses\Settings::get();
     return array_replace_recursive($settings, $config);
 }