src/Loader/YamlLoader.php
public function load()
    {
        try {
            $this->content = Yaml::parse(file_get_contents($this->entity));
        } catch (\Exception $e) {
            throw new \RuntimeException(sprintf(
                "%s threw an exception: %s",
                $this->entity,
                $e
            ));
        }

        return $this;
    }
public function load()
    {
        try {
            $this->content = Yaml::parse(file_get_contents($this->entity));
        } catch (\Exception $e) {
            throw new \RuntimeException(sprintf(
                "%s threw an exception: %s",
                $this->entity,
                $e
            ));
        }

        return $this;
    }
{@inheritdoc}

@throws \RuntimeException If `symfony/yaml` library is not installed or the file can not be parsed