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(int|null $signal = null)
Handle terminating console.
static void
flush()
Purge terminating console callbacks.
Details
at line 27
static void
before(callable $callback)
Register a callback to be run before terminating the command.
at line 37
static void
beforeWhen(bool $condition, callable $callback)
Register a callback to be run before terminating the command when condition is true.
at line 49
static void
handle(int|null $signal = null)
Handle terminating console.
at line 73
static void
flush()
Purge terminating console callbacks.