public function addConfigReader(Config\ReaderInterface $reader) {
		$id = $reader->getId();
		
		if (isset($this->configReaders[$id])) {
			throw new Exceptions\InvalidConfig('Configuration reader with ID "' . $id . '" already exists');
		}
		
		$this->configReaders[] = $reader;
		
		foreach ($reader->getIncludes() as $include) {
			$this->load($include);
		}
		
		return $this;
	}
public function addConfigReader(Config\ReaderInterface $reader) {
		$id = $reader->getId();
		
		if (isset($this->configReaders[$id])) {
			throw new Exceptions\InvalidConfig('Configuration reader with ID "' . $id . '" already exists');
		}
		
		$this->configReaders[] = $reader;
		
		foreach ($reader->getIncludes() as $include) {
			$this->load($include);
		}
		
		return $this;
	}
public function addConfigReader ( Config \ ReaderInterface $ reader ) { $ id = $ reader -> getId ( ) ; if ( isset ( $ this -> configReaders [ $ id ] ) ) { throw new Exceptions \ InvalidConfig ( 'Configuration reader with ID "' . $ id . '" already exists' ) ; } $ this -> configReaders [ ] = $ reader ; foreach ( $ reader -> getIncludes ( ) as $ include ) { $ this -> load ( $ include ) ; } return $ this ; }
Add configuration reader

@param  Config\ReaderInterface $reader
@return Configurator
Add configuration reader