Zend Framework
3.0
|
Pluggable annotation manager. More...
Public Member Functions | |
setEventManager (EventManagerInterface $events) | |
Set the event manager instance. | |
getEventManager () | |
Retrieve event manager. | |
attach (ParserInterface $parser) | |
Attach a parser to listen to the createAnnotation event. | |
createAnnotation (array $annotationData) | |
Create Annotation. | |
Public Attributes | |
const | EVENT_CREATE_ANNOTATION = 'createAnnotation' |
Protected Attributes | |
$events | |
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.
attach | ( | ParserInterface | $parser | ) |
Attach a parser to listen to the createAnnotation event.
ParserInterface | $parser |
createAnnotation | ( | array | $annotationData | ) |
getEventManager | ( | ) |
Retrieve event manager.
Lazy loads an instance if none registered.
Implements EventsCapableInterface.
setEventManager | ( | EventManagerInterface | $events | ) |
Set the event manager instance.
EventManagerInterface | $events |
Implements EventManagerAwareInterface.
|
protected |
const EVENT_CREATE_ANNOTATION = 'createAnnotation' |