Beispiel #1
0
 /**
  * Extends the config with the given config.
  * 
  * @param Config $config Config to read from.
  * @return bool
  */
 public function extend(Config $config)
 {
     $this->config = ArrayUtils::merge($this->config, $config->getNamespace());
     $this->loadedFiles = array_merge($this->loadedFiles, $config->getLoadedFiles());
     return true;
 }
Beispiel #2
0
 protected function provideConfig(array $options = array(), array $mocks = array())
 {
     $mocks = !empty($mocks) ? $mocks : $this->provideMocks();
     $config = new Config();
     $config->apply($options);
     return $config;
 }