コード例 #1
0
 /**
  * Sends the request to the router for routing.
  *
  * @param string|null $routePath
  *
  * @return XenForo_RouteMatch
  */
 public function route($routePath = null)
 {
     $return = $this->_dependencies->route($this->_request, $routePath);
     if (!$return || !$return->getControllerName()) {
         list($controllerName, $action) = $this->_dependencies->getNotFoundErrorRoute();
         if (!$return) {
             $return = new XenForo_RouteMatch();
         }
         $return->setControllerName($controllerName);
         $return->setAction($action);
     }
     return $return;
 }