Abstract aggregate listener

package Default
inherited_from \Zend\EventManager\AbstractListenerAggregate

 Methods

Attach to an event manager

attach(\Zend\EventManager\EventManagerInterface $events) : void

Parameters

$events

\Zend\EventManager\EventManagerInterface

Detach all previously attached listeners

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

Parameters

$events

Listen to the "route" event and attempt to route the request

onRoute(\Zend\Mvc\MvcEvent $e) : null | \Zend\Mvc\Router\RouteMatch

If no matches are returned, triggers "dispatch.error" in order to create a 404 response.

Seeds the event with the route match on completion.

Parameters

$e

\Zend\Mvc\MvcEvent

Returns

null\Zend\Mvc\Router\RouteMatch

 Properties

 

$listeners

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

Default

array()