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 Description
$signal
integer
Returns
integer | false

public handleWindowsSignal (integer $event) : void

Handle the provided Windows process singal.

Parameters
Property Description
$event
integer
Returns
void
Copyright © 2024 Winter CMS