Abstract aggregate listener

 Methods

Attach to an event manager

attach(\Zend\EventManager\EventManagerInterface $events, int $priority) : void

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameters

$priority

int

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) : void
Inherited

inherited_from \Zend\EventManager\AbstractListenerAggregate::detach()

Parameters

Listen to the "route" event and determine if the module namespace should be prepended to the controller name.

onRoute(\Zend\Mvc\MvcEvent $e) : null

If the route match contains a parameter key matching the MODULE_NAMESPACE constant, that value will be prepended, with a namespace separator, to the matched controller parameter.

Parameters

Returns

null

 Properties

 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]
Inherited

inherited_from \Zend\EventManager\AbstractListenerAggregate::$$listeners

 Constants

 

MODULE_NAMESPACE

MODULE_NAMESPACE 

 

ORIGINAL_CONTROLLER

ORIGINAL_CONTROLLER