getForPath() public method

Get the loader for a given path.
public getForPath ( string $path ) : Autarky\Config\LoaderInterface
$path string
return Autarky\Config\LoaderInterface
Beispiel #1
0
 protected function getDataFromFile($path)
 {
     if (!is_readable($path)) {
         throw new LoadException("File is not readable: {$path}");
     }
     $loader = $this->loaderFactory->getForPath($path);
     return $loader->load($path);
 }