Пример #1
0
 /**
  * Exits the CLI through the dispatcher
  * An exit status code can be specified @see http://www.php.net/exit
  *
  * @param integer $exitCode Exit code to return on exit
  * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
  * @return void
  */
 protected function quit($exitCode = 0)
 {
     $this->response->setExitCode($exitCode);
     throw new \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException();
 }
Пример #2
0
 /**
  * Exits the CLI through the dispatcher
  * An exit status code can be specified @see http://www.php.net/exit
  *
  * @param int $exitCode Exit code to return on exit
  * @throws StopActionException
  * @return void
  */
 protected function quit($exitCode = 0)
 {
     $this->response->setExitCode($exitCode);
     throw new StopActionException('quit', 1476107681);
 }