コード例 #1
0
 public function __construct(RequestUriResult $requestParseResult)
 {
     $this->_areaName = $requestParseResult->getAreaName();
     $this->_controllerName = $requestParseResult->getControllerName();
     $this->_actionName = $requestParseResult->getActionName();
     $this->_requestParams = $requestParseResult->getRequestParams();
 }
コード例 #2
0
 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);
 }