Pluggable annotation manager
Simply composes an EventManager. When createAnnotation() is called, it fires off an event of the same name, passing it the resolved annotation class, the annotation content, and the raw annotation string; the first listener to return an object will halt execution of the event, and that object will be returned as the annotation.
Set the event manager instance
Parameters: | EventManagerInterface – |
---|---|
Return type: | AnnotationManager |
Retrieve event manager
Lazy loads an instance if none registered.
Return type: | EventManagerInterface |
---|
Attach a parser to listen to the createAnnotation event
Parameters: | ParserInterface – |
---|---|
Return type: | AnnotationManager |