Make YAML optional

This PR makes symfony/yaml optional instead of required, for those who might not need it.