/** * @param ConfigInterface $config * @param ConfigInterface $current */ private function addConfig(ConfigInterface $config, ConfigInterface $current) { $dirs = (array) $current->get('config.dirs'); foreach ($dirs as $dir) { $this->addConfigByPath($current, $dir); } if ($current->exists('config.mode')) { $config->setOverwriteHandler($this->getOverwriteHandler($config, $current->get('config.mode'))); } $config->merge($current->all()); }