public function load(array $config) { $config = $this->getParsedConfig($config, $this->config, $this->yamlConfigMap, $this->required); $this->setParsedConfig($config); return $this; }
/** * Iterates through and loads the domain section of the configuration. * * @param $config * @throws ConfigurationException */ protected function loadDomainConfiguration(array $config) { try { foreach ($config['domains'] as $domain => $options) { $domain = new DomainConfiguration(); $domain->load($options); $this->addDomain($domain); } } catch (ConfigurationException $e) { throw new ConfigurationException(sprintf("Error in domain config section: %s", $e->getMessage())); } }