src/yimaBase/Mvc/Listener/RouteListener.php
public function onRoute($e)
    {
        $request    = $e->getRequest();
        $router     = $e->getRouter();
        $routeMatch = $router->match($request);

        if (!$routeMatch instanceof RouteMatch)
            throw new RouteNotFoundException();

        $e->setRouteMatch($routeMatch);

        return $routeMatch;
    }
public function onRoute($e)
    {
        $request    = $e->getRequest();
        $router     = $e->getRouter();
        $routeMatch = $router->match($request);

        if (!$routeMatch instanceof RouteMatch)
            throw new RouteNotFoundException();

        $e->setRouteMatch($routeMatch);

        return $routeMatch;
    }
public function onRoute ( $ e ) { $ request = $ e -> getRequest ( ) ; $ router = $ e -> getRouter ( ) ; $ routeMatch = $ router -> match ( $ request ) ; if ( ! $ routeMatch instanceof RouteMatch ) throw new RouteNotFoundException ( ) ; $ e -> setRouteMatch ( $ routeMatch ) ; return $ routeMatch ; }
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.

@param  MvcEvent $e
@throws RouteNotFoundException

@return null|RouteMatch
Listen to the route event and attempt to route the request