public function __construct(RequestUriResult $requestParseResult) { $this->_areaName = $requestParseResult->getAreaName(); $this->_controllerName = $requestParseResult->getControllerName(); $this->_actionName = $requestParseResult->getActionName(); $this->_requestParams = $requestParseResult->getRequestParams(); }
private function initController(RequestUriResult $requestUriResult) { if (!$requestUriResult) { throw new \Exception('Url parse error'); } $fullControllerName = DirectoryHelper::getControllerPath($requestUriResult->getAreaName(), $requestUriResult->getControllerName()); $controller = new $fullControllerName($requestUriResult); $this->setController($controller); }