trait
Illuminate
/
Console
/
Concerns
/
InteractsWithSignals
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
InteractsWithSignals
Properties
Methods
public
trap ( $signals , $callback ) : void
Define a callback to be run when the given signal(s) occurs.
Parameters
-
$signals
iterable
|int -
$
callable
void $callback
public
untrap ( ) : void
Untrap signal handlers set within the command's handler.