PHP Класс Zend\Mvc\RouteListener

Наследование: implements Zend\EventManager\ListenerAggregateInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
attach ( Zend\EventManager\EventManagerInterface $events, integer $priority = 1 ) : void Attach to an event manager
onRoute ( MvcEvent $event ) : null | Zend\Router\RouteMatch Listen to the "route" event and attempt to route the request

Описание методов

attach() публичный Метод

Attach to an event manager
public attach ( Zend\EventManager\EventManagerInterface $events, integer $priority = 1 ) : void
$events Zend\EventManager\EventManagerInterface
$priority integer
Результат void

onRoute() публичный Метод

If no matches are returned, triggers "dispatch.error" in order to create a 404 response. Seeds the event with the route match on completion.
public onRoute ( MvcEvent $event ) : null | Zend\Router\RouteMatch
$event MvcEvent
Результат null | Zend\Router\RouteMatch