On Thu, 07 Apr 2011 11:24:10 +0200, Christophe COEVOET wrote:
Le 07/04/2011 10:53, Benjamin Eberlei a écrit :
@Gedmo is also using the same annotation namespace for several extensions, so there is another use case where the patch breaks.
@Gedmo is now fixed by refactoring its extension to put all
annotations in the same namespace but I find it weird as annotations
are not in the namespace of the given extension anymore.

I have to weigh the interests of users against ease-of-use here. I had tons of cases where people misspelled annotations, or for example in validation annotations, just got the Casing wrong and then it is not working, without any error messages. I agree that the parser has to be liberal to work with all the ugly annotations code out there, but in the case of "namespace exists, but annotation wasnt found" I thought to be 100% sure that throwing an exception is actually very helpful for developers.

Any solutions to make this work?
What about making the exception configurable ? this way it could be
disabled by bundles willing to share the same alias between several
namespaces (handled by different readers as it is the only way for
this) and could be enabled for others (the Validator and
Doctrine*Bundle could use it for instance)


Configurable is a bad way imho, as users cannot trust the behavior anymore.

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