Exemple #1
0
 /**
  * Extend a config by merging configuration data
  *
  * Note that this modifies the original config as opposed to creating a new config.
  * The config returned will be the same one you called `extend()` on but will have a
  * modified data and types.
  *
  * @access public
  * @param ConfigInterface $config The config with which to extend this one
  * @return Config the extended config
  */
 public function extend(ConfigInterface $config)
 {
     $this->types = array_unique(array_merge($this->getTypes(), $config->getTypes()));
     $this->data = array_replace_recursive($this->getData(), $config->getData());
 }