Andrewsville / PHP-Token-Reflection

Library emulating the PHP internal reflection using just the tokenized source code
http://andrewsville.github.com/PHP-Token-Reflection/
Other
190 stars 44 forks source link

Add support for parsing Doctrine annotations #41

Closed lisachenko closed 12 years ago

lisachenko commented 12 years ago

Many projects use doctine annotations to store metadata for class, however ApiGen doesn't support such format, for example, in Symfony2 there is Route annotation @Route("/index", defaults={"_format" = "json"})

Can you add a support for @Annotation annotation in class to use such classes for storing metadata ang show this information in generated documentation?

Andrewsville commented 12 years ago

I don't believe this is not something TokenReflection should handle (it is able to return the @annotation tag and its value but it does no try to parse the value). However we plan to support Doctrine annotations via an official ApiGen plugin apigen/apigen#36. The bad news is that there is no estimate when it will be ready :(