attach(\Zend\EventManager\EventManagerInterface $events) : void
Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.
detach(\Zend\EventManager\EventManagerInterface $events) : void
onRoute(\Zend\Mvc\MvcEvent $e) : null | \Zend\Mvc\Router\RouteMatch
If no matches are returned, triggers "dispatch.error" in order to create a 404 response.
Seeds the event with the route match on completion.