src/LdapTools/Configuration.php
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()));
        }
    }
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()));
        }
    }
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 ( ) ) ) ; } }
Iterates through and loads the domain section of the configuration.

@param $config
@throws ConfigurationException
Iterates through and loads the domain section of the configuration .