DataSift\Storyplayer\Cli\Script_Command::sigtermHandler PHP Метод

sigtermHandler() публичный Метод

public sigtermHandler ( integer $signo ) : void
$signo integer
Результат void
    public function sigtermHandler($signo)
    {
        // tell the user what is happening
        echo "\n";
        echo "============================================================\n";
        echo "USER ABORT!!\n";
        echo "============================================================\n";
        echo "\n";
        // cleanup
        $phasesPlayer = new PhaseGroup_Player();
        $phasesPlayer->playPhases("user abort", $this->st, $this->injectables, $this->injectables->activeConfig->getData('storyplayer.phases.userAbort'), null);
        // force a clean shutdown
        exit(1);
    }