classes/Config/LoaderFactory.php
public function getForPath($path)
	{
		$extension = $this->getExtension($path);

		if (!isset($this->loaders[$extension])) {
			$this->resolveLoader($extension);
		}

		return $this->loaders[$extension];
	}
public function getForPath($path)
	{
		$extension = $this->getExtension($path);

		if (!isset($this->loaders[$extension])) {
			$this->resolveLoader($extension);
		}

		return $this->loaders[$extension];
	}
public function getForPath ( $ path ) { $ extension = $ this -> getExtension ( $ path ) ; if ( ! isset ( $ this -> loaders [ $ extension ] ) ) { $ this -> resolveLoader ( $ extension ) ; } return $ this -> loaders [ $ extension ] ; }
Get the loader for a given path.

@param  string $path

@return LoaderInterface
Get the loader for a given path .