protected function initReader(FileInterface $file) {
		$extension = $file->getExtension();
		
		if ($extension === 'xml') {
			return new Config\XmlReader($file);
		}
		
		throw new Exceptions\InvalidConfig('Unknown type of configuration "' . $extension . '"');
	}
protected function initReader(FileInterface $file) {
		$extension = $file->getExtension();
		
		if ($extension === 'xml') {
			return new Config\XmlReader($file);
		}
		
		throw new Exceptions\InvalidConfig('Unknown type of configuration "' . $extension . '"');
	}
protected function initReader ( FileInterface $ file ) { $ extension = $ file -> getExtension ( ) ; if ( $ extension === 'xml' ) { return new Config \ XmlReader ( $ file ) ; } throw new Exceptions \ InvalidConfig ( 'Unknown type of configuration "' . $ extension . '"' ) ; }
Load reader by config file

@param  FileInterface $file
@return Config\ReaderInterface;
@throws Exceptions\InvalidConfig
Load reader by config file