| Fully Qualified Name: | Laminas\Mvc\ModuleRouteListener |
| Extends: | AbstractListenerAggregate |
| 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 |
Attach to an event manager
| Parameter Name | Type | Description |
|---|---|---|
| $events | \EventManagerInterface | |
| $priority | int |
Returns:
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $events |
Returns:
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