trait InteractsWithSignals (View source)

Properties

protected Signals|null $signals

The signal registrar instance.

Methods

void
trap(iterable<array-key,int>|int $signals, $callback)

Define a callback to be run when the given signal(s) occurs.

void
untrap()

Untrap signal handlers set within the command's handler.

Details

void trap(iterable<array-key,int>|int $signals, $callback)

Define a callback to be run when the given signal(s) occurs.

Parameters

iterable<array-key,int>|int $signals
$callback

Return Value

void

void untrap()

internal  
 

Untrap signal handlers set within the command's handler.

Return Value

void