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); }