On this page
InteractsWithSignals
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.
void untrap()
internal |
Untrap signal handlers set within the command's handler.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Console/Concerns/InteractsWithSignals.html