src/cbednarski/Pharcc/Config.php
public static function loadFile($path)
    {
        if (!realpath($path)) {
            throw new \RuntimeException('Unable to load configuration file from ' . $path);
        }

        $data = Yaml::parse($path);

        return new static(pathinfo($path, PATHINFO_DIRNAME), $data);
    }
public static function loadFile($path)
    {
        if (!realpath($path)) {
            throw new \RuntimeException('Unable to load configuration file from ' . $path);
        }

        $data = Yaml::parse($path);

        return new static(pathinfo($path, PATHINFO_DIRNAME), $data);
    }
public static function loadFile ( $ path ) { if ( ! realpath ( $ path ) ) { throw new \ RuntimeException ( 'Unable to load configuration file from ' . $ path ) ; } $ data = Yaml :: parse ( $ path ) ; return new static ( pathinfo ( $ path , PATHINFO_DIRNAME ) , $ data ) ; }
Load configuration data from the specified file

@param  string            $path Read this config file
@return self
@throws \RuntimeException
Load configuration data from the specified file