Class RouteListener

Summary

Fully Qualified Name: Zend\Mvc\RouteListener
Extends: AbstractListenerAggregate

Description

Methods

Name Description Defined By
attach() Attach to an event manager RouteListener
detach() {@inheritDoc} AbstractListenerAggregate
onRoute() Listen to the "route" event and attempt to route the request RouteListener

Method Details

attach()

Attach to an event manager

Parameter Name Type Description
$events \EventManagerInterface
$priority int

Returns: void

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

onRoute()

Listen to the "route" event and attempt to route the request

If no matches are returned, triggers "dispatch.error" in order to create a 404 response.

Seeds the event with the route match on completion.

Parameter Name Type Description
$event \MvcEvent

Returns: null|\RouteMatch

Top