Platformsh\Cli\CliConfig::loadConfigFromFile PHP Method

loadConfigFromFile() protected method

protected loadConfigFromFile ( string $filename ) : array
$filename string
return array
    protected function loadConfigFromFile($filename)
    {
        $contents = file_get_contents($filename);
        if ($contents === false) {
            throw new \RuntimeException('Failed to read config file: ' . $filename);
        }
        return (array) Yaml::parse($contents);
    }