Fully Qualified Name: | Zend\Form\Annotation\AbstractAnnotationsListener |
Extends: | AbstractListenerAggregate |
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.
Name | Description | Defined By |
---|---|---|
detach() | {@inheritDoc} | AbstractListenerAggregate |
discoverFallbackName() | Discover the fallback name via reflection | AbstractAnnotationsListener |
handleNameAnnotation() | Attempt to discover a name set via annotation | AbstractAnnotationsListener |
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events |
Returns:
Discover the fallback name via reflection
Parameter Name | Type | Description |
---|---|---|
$e | \Zend\EventManager\EventInterface |
Returns: string
Attempt to discover a name set via annotation
Parameter Name | Type | Description |
---|---|---|
$e | \Zend\EventManager\EventInterface |
Returns: bool|string