1227. Class

1227.1. Zend\Mvc\RouteListener

1227.1.1. Methods

1227.1.1.1. attach

attach()

Attach to an event manager

Parameters:EventManagerInterface
Return type:void

1227.1.1.2. detach

detach()

Detach all our listeners from the event manager

Parameters:EventManagerInterface
Return type:void

1227.1.1.3. onRoute

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.

Parameters:MvcEvent
Return type:null|RouterRouteMatch

Project Versions

Table Of Contents

Previous topic

1226. Class

Next topic

1228. Class

This Page