On 18.11.2010 07:11, Fabien Potencier wrote:
>> So.. as a followup to last's week IRC talk, where someone told me to
>> convert the security services definition from xml to yaml to see how
>> ugly it would get, I'd like to present you my findings: It's actually
>> ok! ;)
>>
>> First of all, the base XML one: http://pastie.org/1307034
>> Second, the Yamlified version: http://pastie.org/1307035
>>
>> Seeing that, what do you guys think? Do you really think XML is worth it?
> 
> Just for the record, on IRC, we said YAML for app config and XML for
> bundle config.

You and others agreed on YAML for app config, but I'm still trying to
argue my way into having consistent configs with YAML for everything.

> For core bundles, I want to keep XML (as it means no dependencies on the
> YAML component). For end user bundles, I'm +0 to make YAML the
> recommended best practice.

I don't really get the issue with the YAML component. You're still
relying on the DI component, D2 is relying on Yaml, app config is
relying on Yaml. I think components shouldn't rely on each other, but
Bundles are somewhat Symfony specific, and there we can assume we have
access to Yaml.

> If the idea is to drop XML support entirely, then I'm strongly -1.

The idea is not to drop XML, although I wouldn't mind. I'm not against
having the flexibility, but I just think at the moment it doesn't really
make sense, you have different config schemes, and they're all using a
lowest common denominator approach which means they all sort of suck.

What I'd like is to get rid of XSDs at least. I'd rather have some other
validation format that can be applied to all config formats.

At the moment you also have those two XML/XSD-specific methods in every
DI Extension class that don't really mean much if you use Yaml. It just
feels a bit awkward to me.

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

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

Reply via email to