Hi,

to add support for annotations in the eclipse plugin i'm working on i would 
need to 
detect where annotations are being declared inside 3rd party libraries / 
bundles.

This works fine already for the Doctrine annotations, because each 
annotation is actually
a PHP class which is a subclass of Doctrine\Common\Annotations\Annotation.

The parameters of the annotations are the fields of the annotation class, so 
i have most
of the information i need already there.

However, the FrameworkExtraBundle doesn't seem to work that way, as none of 
the annotations
extend Doctrine\Common\Annotations\Annotation or some other Annotation class 
i could look for.

The bundle simply registers the onCoreController listener and parses the 
annotations using reflection,
there's no proper way to detect that the class declares an annotation, ie 
"@Route".

Maybe the metadescription for annotationclasses which don't extend 
Doctrine\Annotation could 
be added in the PHPDocBlock of the class itself, so IDEs can parse them, ie:

/**
 * Annotation class for @Route().
 *
 * @AnnotationClass(name="Route")
 * 
 * @AnnotationParam(name="param1", description="This param does  'Foo'")
 * @AnnotationParam(name="param2", description="This param means 'Bar'")
 *
 */
class Route
{
  ...
}

What do you think?


regards

-robert


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