Pass the contents of the file to Yaml::parse()

Symfony 2.7 is erroring:


    The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. 
    Please, pass the contents of the file instead. in 
    vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php on line 58