DataSift\Storyplayer\Cli\BuildTestEnvironment_Command::initSignalHandling PHP Method

initSignalHandling() protected method

protected initSignalHandling ( DataSift\Storyplayer\Injectables $injectables ) : void
$injectables DataSift\Storyplayer\Injectables
return void
    protected function initSignalHandling(Injectables $injectables)
    {
        // we need to remember the injectables, for when we handle CTRL+C
        $this->injectables = $injectables;
        // setup signal handling
        pcntl_signal(SIGTERM, array($this, 'sigtermHandler'));
        pcntl_signal(SIGINT, array($this, 'sigtermHandler'));
    }