Is it just for separation of concerns?
Is there any other advantage? Do you know of any bundles that use annotations instead?
Another thing to note is that symfony-standard uses yaml by default; This is also true for the cookbook.
Is it just for separation of concerns?
Is there any other advantage? Do you know of any bundles that use annotations instead?
Another thing to note is that symfony-standard uses yaml by default; This is also true for the cookbook.
This applies to symfony1 but probably nothing has changed. Source.
What's the best Format for your Service Definitions?
Using the XML format gives you several advantages over the YAML one: When a XML file is loaded, it is automatically validated with the built-in services.xsd file;
The XML can be auto-completed in IDEs;
The XML format is faster than the YAML one;
The XML format as no external dependencies (the YAML format relies on the sfYAML component).