Zend\Form\Annotation\AbstractAnnotationsListener
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.
Synopsis
class AbstractAnnotationsListener
extends AbstractListenerAggregate
{
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public false|string handleNameAnnotation()
- public string discoverFallbackName()
- // Inherited methods from AbstractListenerAggregate
- public void detach()
Hierarchy
Extends
Extended by
Members
protected
- $listeners — array
Methods
public
- discoverFallbackName() — Discover the fallback name via reflection
- handleNameAnnotation() — Attempt to discover a name set via annotation
Inherited from Zend\EventManager\AbstractListenerAggregate
public
- detach() — {@inheritDoc}