/** * Sends the request to the router for routing. * * @return XenForo_RouteMatch */ public function route() { $return = $this->_dependencies->route($this->_request); if (!$return || !$return->getControllerName()) { list($controllerName, $action) = $this->_dependencies->getNotFoundErrorRoute(); $return->setControllerName($controllerName); $return->setAction($action); } return $return; }
/** * 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; }