My idea was to not throw exceptions on annotations that dont contain a namespace.

i.e. @Orm\foo <- throw  @foo <- dont throw.

But johanness argued this is annoying with regard to helping developers find mistakes in their annotations, for example the MVC Extra annotations are probably imported with their classnameonly (without namespace).

I still think its the best approach though.

On Thu, 26 May 2011 12:29:44 +0200, Fabien Potencier wrote:
On 5/26/11 12:16 PM, Lukas Kahwe Smith wrote:

On 26.05.2011, at 12:14, Johannes Schmitt wrote:

Add @IgnoreAnnotation("whatever-name-causes-problems") to the doc comment of the _class_ in which the offending annotation is being used.

that feels really cludgy to me.

That's really something we should fix. What about forcing all
annotations to use () at the end?

@Foo()
@Foo <- not an annotation anymore

That would remove almost all possible conflicts with existing phpdoc
annotations.

Fabien

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]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to