Class AbstractAnnotationsListener

Summary

Fully Qualified Name: Zend\Form\Annotation\AbstractAnnotationsListener
Extends: AbstractListenerAggregate

Description

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.

Methods

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

Method Details

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

discoverFallbackName()

Discover the fallback name via reflection

Parameter Name Type Description
$e \Zend\EventManager\EventInterface

Returns: string

handleNameAnnotation()

Attempt to discover a name set via annotation

Parameter Name Type Description
$e \Zend\EventManager\EventInterface

Returns: bool|string

Top