Exemplo n.º 1
0
 /**
  * Handles a request. The result output is returned by altering the given response.
  *
  * @param \TYPO3\Flow\Mvc\RequestInterface $request The request object
  * @param \TYPO3\Flow\Mvc\ResponseInterface $response The response, modified by this handler
  * @return void
  * @throws \TYPO3\Flow\Mvc\Exception\UnsupportedRequestTypeException
  * @api
  */
 public function processRequest(\TYPO3\Flow\Mvc\RequestInterface $request, \TYPO3\Flow\Mvc\ResponseInterface $response)
 {
     $this->initializeController($request, $response);
     $this->actionMethodName = $this->resolveActionMethodName();
     $this->initializeActionMethodArguments();
     $this->initializeActionMethodValidators();
     $this->mvcPropertyMappingConfigurationService->initializePropertyMappingConfigurationFromRequest($this->request, $this->arguments);
     $this->initializeAction();
     $actionInitializationMethodName = 'initialize' . ucfirst($this->actionMethodName);
     if (method_exists($this, $actionInitializationMethodName)) {
         call_user_func(array($this, $actionInitializationMethodName));
     }
     $this->mapRequestArgumentsToControllerArguments();
     if ($this->view === NULL) {
         $this->view = $this->resolveView();
     }
     if ($this->view !== NULL) {
         $this->view->assign('settings', $this->settings);
         $this->view->setControllerContext($this->controllerContext);
         $this->initializeView($this->view);
     }
     $this->callActionMethod();
 }