lithium\console\Command::stop()
Stop execution, by exiting the script.
Parameters
-
integer
$status
Numeric value that will be used on
exit()
. -
string|null
$message
An optional message that will be written to the stream.
Returns
voidSource
public function stop($status = 0, $message = null) {
if ($message) {
($status == 0) ? $this->out($message) : $this->error($message);
}
exit($status);
}