copy Symfony DI YamlFileLoader and set private access modfiers to protected
No clue as to why it was designed the way it was.
YamlFileLoader hints the class revolves around yaml files, but all it does is parse a php array (!) returned by the yamlParser.
On top of that, this php-array-parsing is done in all private methods.