Abstract aggregate listener

package Default
inherited_from \Zend\EventManager\AbstractListenerAggregate

 Methods

Attach to an event manager

attach(\Zend\EventManager\EventManagerInterface $events, integer $priority = 1

Parameters

$events

\Zend\EventManager\EventManagerInterface

$priority

integer

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 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

$e

\Zend\Mvc\MvcEvent

Returns

null

 Properties

 

$listeners

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

Default

array()

 Constants

 

MODULE_NAMESPACE

MODULE_NAMESPACE = '__NAMESPACE__' 
 

ORIGINAL_CONTROLLER

ORIGINAL_CONTROLLER = '__CONTROLLER__'