Updated the functions to use the Symfony YAML component.