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.

Parameters

callable $callback

Return Value

void

at line 37
static void beforeWhen(bool $condition, callable $callback)

Register a callback to be run before terminating the command when condition is true.

Parameters

bool $condition
callable $callback

Return Value

void

at line 49
static void handle(int|null $signal = null)

Handle terminating console.

Parameters

int|null $signal

The signal that is terminating the command

Return Value

void

at line 73
static void flush()

Purge terminating console callbacks.

Return Value

void