TerminatingConsole
final class TerminatingConsole
| internal |
Methods
static void
before(callable $callback)
Register a callback to be run before terminating the command.
static void
beforeWhen(bool $condition, callable $callback)
Register a callback to be run before terminating the command when condition is true.
static void
handle()
Handle terminating console.
static void
flush()
Purge terminating console callbacks.
Details
at line 26
static void
before(callable $callback)
Register a callback to be run before terminating the command.
at line 36
static void
beforeWhen(bool $condition, callable $callback)
Register a callback to be run before terminating the command when condition is true.
at line 46
static void
handle()
Handle terminating console.
at line 59
static void
flush()
Purge terminating console callbacks.