Le 05/07/2011 12:17, Oleg Stepura a écrit :
Hi!

I've just found that there exists a new XML validation standard called CAM. Maybe this one can be used instead of PHP configuration description files used now to describe DI config? (Just a suggestion).

http://www.ibm.com/developerworks/library/x-cam/index.html

The issue is that the configuration has to be validated *after* merging the different config files (this is the only way to validate required configuration parameters). And CAM has the same issue than XSD here: it validates a file, not a computed configuration. Thus CAM supports only XML whereas Symfony supports also YAML and PHP configurations, and most people are likely to use YAML as it is less verbose. And finally, the Configuration classes are not only responsible of validating the config but also normalizing it (to remove the differences when using XML) and merging the different config files (and the big job is not validating but merging).

--
Christophe | Stof

--
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to