| Fully Qualified Name: | Zend\Mvc\RouteListener |
| Extends: | AbstractListenerAggregate |
| 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 |
Attach to an event manager
| Parameter Name | Type | Description |
|---|---|---|
| $events | \EventManagerInterface | |
| $priority | int |
Returns: void
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $events |
Returns:
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