Class ModuleRouteListener

Summary

Fully Qualified Name: Zend\Mvc\ModuleRouteListener
Extends: AbstractListenerAggregate

Description

Methods

Name Description Defined By
attach() Attach to an event manager ModuleRouteListener
detach() {@inheritDoc} AbstractListenerAggregate
onRoute() Listen to the "route" event and determine if the module namespace should be prepended to the controller name. ModuleRouteListener

Method Details

attach()

Attach to an event manager

Parameter Name Type Description
$events \EventManagerInterface
$priority int

Returns:

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

onRoute()

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

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.

Parameter Name Type Description
$e \MvcEvent

Returns: null

Top