Drest\Service::getMatchedRoute PHP Method

getMatchedRoute() public method

Get the route object that was matched
public getMatchedRoute ( ) : RouteMetaData
return Drest\Mapping\RouteMetaData $matched_route
    public function getMatchedRoute()
    {
        return $this->matched_route;
    }

Usage Example

示例#1
0
 /**
  * get the matched route object
  * @return RouteMetaData $route
  */
 protected function getMatchedRoute()
 {
     return $this->service->getMatchedRoute();
 }