public function matchRequest(Request $request) {
        $context = new RequestContext();
        $context->fromRequest($request);
        $this->setContext($context);

        return($this->match($request->getPathInfo()));
    }
public function matchRequest(Request $request) {
        $context = new RequestContext();
        $context->fromRequest($request);
        $this->setContext($context);

        return($this->match($request->getPathInfo()));
    }
public function matchRequest ( Request $ request ) { $ context = new RequestContext ( ) ; $ context -> fromRequest ( $ request ) ; $ this -> setContext ( $ context ) ; return ( $ this -> match ( $ request -> getPathInfo ( ) ) ) ; }
matchRequest
Match a Request object to a set of routes.

@param Request $request The request to match
@return array An array of parameters

@throws RoutingException
matchRequest Match a Request object to a set of routes .