PHP Class Zend\Mvc\ModuleRouteListener

Inheritance: implements Zend\EventManager\ListenerAggregateInterface
Show file Open project: zendframework/zend-mvc Class Usage Examples

Public Methods

Method Description
attach ( Zend\EventManager\EventManagerInterface $events, integer $priority = 1 ) Attach to an event manager
onRoute ( MvcEvent $e ) : null Listen to the "route" event and determine if the module namespace should be prepended to the controller name.

Method Details

attach() public method

Attach to an event manager
public attach ( Zend\EventManager\EventManagerInterface $events, integer $priority = 1 )
$events Zend\EventManager\EventManagerInterface
$priority integer

onRoute() public method

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.
public onRoute ( MvcEvent $e ) : null
$e MvcEvent
return null