Sets the numerical exit code which should be returned when exiting this application.
public setExitCode ( integer $exitCode ) : void | ||
$exitCode | integer | |
return | void |
/** * Exits the CLI through the dispatcher and makes sure that Flow is properly shut down. * * If your command relies on functionality which is triggered through the Bootstrap * shutdown (such as the persistence framework), you must use quit() instead of exit(). * * @param integer $exitCode Exit code to return on exit (see http://www.php.net/exit) * @throws StopActionException * @return void */ protected function quit($exitCode = 0) { $this->response->setExitCode($exitCode); throw new StopActionException(); }