I think that config files must be used just to store simple key-value options. Any other conplex configuration must be done from php. I don't like how the generator.yml looks like nowadays because sometimes it can contain quite complex structures depending on the level of customizations you need. I think that you should't have to debug a config file, it's just a config file!! First you have to decide what kind of things would you like to store in a configuration file. If you 'd like to store simple things(like settings.yml) i think it's fine yml or ini files. These kind of files are easy to read in any documentation. Compare this configuration example files http://framework.zend.com/manual/en/zend.config.adapters.ini.html with the xml counterpart http://framework.zend.com/manual/en/zend.config.adapters.xml.html. Maybe for the advanced users you can even give an option in the generate:project task to generate xml for configuration files.
On 25 sep, 07:10, Gunnar Lium <[email protected]> wrote: > I agree that YAML is far easier to read, but at the same time harder to > debug. I've also found that the flexible syntax of YAML (one line/multiline) > makes it bit harder to fullly grasp. Changing a simple value is trivial, but > defining more complex structures are harder. > > I reallly like XML for its autocompletion/IDE-integretation/validation. > > I think the worst thing a frame work can do is to first teach the "quick and > dirty way" (YAML), and then later tell users that you really should use XML > instead. I think we should use to format that the core developers use > themselves for large client projects. Neither format is so hard to learn > that it would prohibit new users. If you're seasoned enough to use Symfony2, > you can deal with XML files. > > That being said, I still use YAML for all my symfony projects, since that > was the framework default, and I've never felt the need to port to XML. > > -gunnar lium > > On Sat, Sep 25, 2010 at 11:25 AM, Francois Zaninotto > <[email protected]>wrote: > > > Not just this guy (lol), but other projects focused on that, too. > > >http://www.kuwata-lab.com/kwalify/ > > > François > > > 2010/9/25 Lukas Kahwe Smith <[email protected]> > > >> On 25.09.2010, at 11:01, Francois Zaninotto wrote: > > >> > Lastly, if syntax and grammar are still strong points against YAML, it's > >> not impossible to improve the error messages in the parsing (to help with > >> syntax), or to validate a YAML file against a schema (to help with > >> grammar). > > >> > In conclusion: YAML for default. > > >> yeah if we could validate YAML properly, then one of the main drawbacks is > >> removed. not sure why i never googled this before, but someone seems to > >> have > >> put a lot of thought into being able to cross-compile yaml to xml to be > >> able > >> to use XSD for validation: > > >>http://redotheweb.com/2008/09/09/validating-a-yaml-file-against-a-sch... > > >> regards, > >> Lukas Kahwe Smith > >> [email protected] > > >> -- > >> If you want to report a vulnerability issue on symfony, please send it to > >> security at symfony-project.com > > >> You received this message because you are subscribed to the Google > >> Groups "symfony developers" group. > >> To post to this group, send email to [email protected] > >> To unsubscribe from this group, send email to > >> [email protected]<symfony-devs%[email protected]> > >> For more options, visit this group at > >>http://groups.google.com/group/symfony-devs?hl=en > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-devs%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/symfony-devs?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
