Base annotations listener.

Provides an implementation of detach() that should work with any listener. Also provides listeners for the "Name" annotation -- handleNameAnnotation() will listen for the "Name" annotation, while discoverFallbackName() listens on the "discoverName" event and will use the class or property name, as discovered via reflection, if no other annotation has provided the name already.

package Default
inherited_from \Zend\EventManager\AbstractListenerAggregate

 Methods

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) 
Inherited
inherited_from \Zend\EventManager\ListenerAggregateInterface::detach()

Parameters

$events

Discover the fallback name via reflection

discoverFallbackName(\Zend\EventManager\EventInterface $e) : string

Parameters

$e

\Zend\EventManager\EventInterface

Returns

string

Attempt to discover a name set via annotation

handleNameAnnotation(\Zend\EventManager\EventInterface $e) : false | string

Parameters

$e

\Zend\EventManager\EventInterface

Returns

falsestring

 Properties

 

$listeners

$listeners : array<mixed,\Zend\Stdlib\CallbackHandler>

Default

array()