public function matchRoutes(Request $request) {
        $result = array();

        foreach ($this->routes as $route) {
            $matches = $route->matches($request, $this);
            if ($matches) {
                $result[] = array($route, $matches);
            }
        }
        return $result;
    }
public function matchRoutes(Request $request) {
        $result = array();

        foreach ($this->routes as $route) {
            $matches = $route->matches($request, $this);
            if ($matches) {
                $result[] = array($route, $matches);
            }
        }
        return $result;
    }
public function matchRoutes ( Request $ request ) { $ result = array ( ) ; foreach ( $ this -> routes as $ route ) { $ matches = $ route -> matches ( $ request , $ this ) ; if ( $ matches ) { $ result [ ] = array ( $ route , $ matches ) ; } } return $ result ; }
Get all of the matched routes for a request.

@param Request $request The {@link Request} to match against.
@return array An array of arrays corresponding to matching routes and their args.
Get all of the matched routes for a request .