symfony-cmf / symfony-cmf-docs

The documentation for the symfony content management framework
http://cmf.symfony.com
44 stars 157 forks source link

Generate with no interaction -> xml #568

Closed SimonVanherweghe closed 9 years ago

SimonVanherweghe commented 10 years ago

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

dbu commented 10 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.

dantleech commented 10 years ago

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.

dbu commented 10 years ago

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 :-)

dbu commented 10 years ago

@DoneBySimon did you try the --format=yml variant @dantleech proposed?

lsmith77 commented 10 years ago

ping

dbu commented 10 years ago

ping @DoneBySimon

wouterj commented 10 years ago

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.

dbu commented 10 years ago

continued in #603

dbu commented 9 years ago

see #603