PHP Class Zend\Mvc\ModuleRouteListener

Inheritance: implements Zend\EventManager\ListenerAggregateInterface
Afficher le fichier Open project: zendframework/zend-mvc Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

onRoute() public méthode

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
Résultat null