Closed SimonVanherweghe closed 9 years ago
@dantleech do you have an opinion here. i guess the change by simon makes sense if there is no parameter to make the command generate yml files without interaction.
You can specify the format with --format=xml
I would personally prefer that we add that option to the example, and explain that they can change that option as they want (for example by adding a .. note::
section.
I fear that if its interactive then people will be "creative" and things won't work.
oh, good. then lets add --format=yml (that was the idea, i think?) what is the default tab on the examples afterwards? we could even provide the line in all 3 formats with tabs :-)
@DoneBySimon did you try the --format=yml
variant @dantleech proposed?
ping
ping @DoneBySimon
The team that created the best practices used $ php app/console generate:bundle --namespace=AppBundle --dir=src --format=annotation --no-interaction
. I think we can assume that's the correct command to use.
continued in #603
see #603
This is a small issue, almost nagging When you generate the bundle without interaction, the services and routing files in the bundle are in xml format. Strange because the YAML version is always first in the row. Confusing. I don't think there is an option to specify YAML format, is it? So I went for generating the bundle with interaction