1225. Class

1225.1. Zend\Mvc\ModuleRouteListener

1225.1.1. Methods

1225.1.1.1. attach

attach()

Attach to an event manager

Parameters:
  • EventManagerInterface
  • integer

1225.1.1.2. detach

detach()

Detach all our listeners from the event manager

Parameters:EventManagerInterface
Return type:void

1225.1.1.3. onRoute

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.

Parameters:MvcEvent
Return type:null

1225.1.2. Constants

1225.1.2.1. MODULE_NAMESPACE

1225.1.2.2. ORIGINAL_CONTROLLER

Project Versions

Table Of Contents

Previous topic

1223. Function

Next topic

1226. Class

This Page