public function load($config) {
		if ($this->configsDir === null) {
			new Exceptions\ConfiguratorError('Directory of configuration files did not been set');
		}
		
		$file = $this->configsDir->getFile($config);
		
		$this->addConfigReader($this->initReader($file));
		
		return $this;
	}
public function load($config) {
		if ($this->configsDir === null) {
			new Exceptions\ConfiguratorError('Directory of configuration files did not been set');
		}
		
		$file = $this->configsDir->getFile($config);
		
		$this->addConfigReader($this->initReader($file));
		
		return $this;
	}
public function load ( $ config ) { if ( $ this -> configsDir === null ) { new Exceptions \ ConfiguratorError ( 'Directory of configuration files did not been set' ) ; } $ file = $ this -> configsDir -> getFile ( $ config ) ; $ this -> addConfigReader ( $ this -> initReader ( $ file ) ) ; return $ this ; }
Load configuration file

@param  string $config
@return Configurator
@throws Exceptions\InvalidConfig
Load configuration file