HandlesCleanup
Console Command Trait that injects cross-platform signal handling to trigger
cleanup on exit through the handleCleanup() method on the implementing class.
trait Winter\Storm\Console\Traits\HandlesCleanup
NOTE: This trait requires the implementing class to implement the Symfony\Component\Console\Command\SignalableCommandInterface interface
Methods
public getSubscribedSignals () : array
Returns the process signals this command listens to
Returns
array
public handleSignal (integer $signal) : integer | false
Handle the provided Unix process signal
Parameters
Property | Type | Description |
---|---|---|
$signal | integer |
integer
|
Returns
integer | false
public handleWindowsSignal (integer $event) : void
Handle the provided Windows process singal.
Parameters
Property | Type | Description |
---|---|---|
$event | integer |
integer
|
Returns
void
Copyright © 2023 Winter CMS