public function findLoader(\SplFileInfo $source)
	{
		foreach($this->loaders as $loader)
		{
			if($loader->isSupported($source))
			{
				return $loader;
			}
		}
		
		throw new \OutOfBoundsException(sprintf('No configuration loader found for "%s"', $source->getPathname()));
	}
public function findLoader(\SplFileInfo $source)
	{
		foreach($this->loaders as $loader)
		{
			if($loader->isSupported($source))
			{
				return $loader;
			}
		}
		
		throw new \OutOfBoundsException(sprintf('No configuration loader found for "%s"', $source->getPathname()));
	}
public function findLoader ( \ SplFileInfo $ source ) { foreach ( $ this -> loaders as $ loader ) { if ( $ loader -> isSupported ( $ source ) ) { return $ loader ; } } throw new \ OutOfBoundsException ( sprintf ( 'No configuration loader found for "%s"' , $ source -> getPathname ( ) ) ) ; }
Picks a config loader for the given file and returns it.

@param \SplFileInfo $source
@return ConfigurationLoaderInterface

@throws \OutOfBoundsException When no loader is able to load the given file.
Picks a config loader for the given file and returns it .