PPI\Framework\Config\Loader\YamlFileLoader::loadFile PHP Метод

loadFile() защищенный Метод

Loads a YAML file.
protected loadFile ( string $file ) : array
$file string
Результат array The file content
    protected function loadFile($file)
    {
        if (!stream_is_local($file)) {
            throw new InvalidArgumentException(sprintf('This is not a local file "%s".', $file));
        }
        if (!file_exists($file)) {
            throw new InvalidArgumentException(sprintf('The service file "%s" is not valid.', $file));
        }
        if (null === $this->yamlParser) {
            $this->yamlParser = new YamlParser();
        }
        return $this->yamlParser->parse(file_get_contents($file));
    }