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