original_string: public function runController($route)
      {
          if (($ca = $this->createController($route)) !== null) {
              /** @var \Mindy\Controller\BaseController $controller */
              list($controller, $actionID, $params) = $ca;
              $_GET = array_merge($_GET, $params);
              $csrfExempt = $controller->getCsrfExempt();
              if (Console::isCli() === false && in_array($actionID, $csrfExempt) === false) {
                  /** @var \Mindy\Http\Request $request */
                  $request = $this->getComponent('request');
                  if ($request->enableCsrfValidation) {
                      $request->csrf->validate();
                  }
              }
              $oldController = $this->_controller;
              $this->_controller = $controller;
              $controller->init();
              $controller->run($actionID, $params);
              $this->_controller = $oldController;
          } else {
              throw new HttpException(404, Mindy::t('base', 'Unable to resolve the request "{route}".', [
                  '{route}' => $this->request->getPath()
              ]));
          }
      }
code: public function runController($route)
      {
          if (($ca = $this->createController($route)) !== null) {
              /** @var \Mindy\Controller\BaseController $controller */
              list($controller, $actionID, $params) = $ca;
              $_GET = array_merge($_GET, $params);
              $csrfExempt = $controller->getCsrfExempt();
              if (Console::isCli() === false && in_array($actionID, $csrfExempt) === false) {
                  /** @var \Mindy\Http\Request $request */
                  $request = $this->getComponent('request');
                  if ($request->enableCsrfValidation) {
                      $request->csrf->validate();
                  }
              }
              $oldController = $this->_controller;
              $this->_controller = $controller;
              $controller->init();
              $controller->run($actionID, $params);
              $this->_controller = $oldController;
          } else {
              throw new HttpException(404, Mindy::t('base', 'Unable to resolve the request "{route}".', [
                  '{route}' => $this->request->getPath()
              ]));
          }
      }
code_tokens: public function runController ( $ route ) { if ( ( $ ca = $ this -> createController ( $ route ) ) !== null ) { /** @var \Mindy\Controller\BaseController $controller */ list ( $ controller , $ actionID , $ params ) = $ ca ; $ _GET = array_merge ( $ _GET , $ params ) ; $ csrfExempt = $ controller -> getCsrfExempt ( ) ; if ( Console :: isCli ( ) === false && in_array ( $ actionID , $ csrfExempt ) === false ) { /** @var \Mindy\Http\Request $request */ $ request = $ this -> getComponent ( 'request' ) ; if ( $ request -> enableCsrfValidation ) { $ request -> csrf -> validate ( ) ; } } $ oldController = $ this -> _controller ; $ this -> _controller = $ controller ; $ controller -> init ( ) ; $ controller -> run ( $ actionID , $ params ) ; $ this -> _controller = $ oldController ; } else { throw new HttpException ( 404 , Mindy :: t ( 'base' , 'Unable to resolve the request "{route}".' , [ '{route}' => $ this -> request -> getPath ( ) ] ) ) ; } }
docstring: Creates the controller and performs the specified action.
  @param string $route the route of the current request. See {@link createController} for more details.
  @throws HttpException if the controller could not be created.
docstring_tokens: Creates the controller and performs the specified action .