Timm Friebe wrote: > Extend (or wrap) the reflection classes and add: > > MyClass::getAnnotations() > MyMethod::getAnnotations() > MyProperty::getAnnotations() > > In those, parse the sourcecode with ext/tokenizer and extract all > comments beginning with the string "#[", push them into a hashmap and > return it.
I would like to see a PEAR (or even PECL) package that provides this functionality. I might even write it myself (given that I have a couple of long train rides coming up I will probably do this anyhow :-) -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php