Passing file contents rather than filename

ability to pass file names was deprecated in symfonys YAML component v2.2 and will be removed in 3.0
Merge pull request #664 from sstutz/Yaml_parse

Passing file contents rather than filename