Replace the file path with file_get_contents

Yaml v3.0 parser needs the content of the file instead of the file path. 
This fixes an the ErrorException