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.

Parameters

callable $callback

Return Value

void

at line 36
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 46
static void handle()

Handle terminating console.

Return Value

void

at line 59
static void flush()

Purge terminating console callbacks.

Return Value

void