DataSift\Storyplayer\Cli\Install_Command::processCommand PHP Method

processCommand() public method

public processCommand ( Phix_Project\CliEngine $engine, array $params = [], mixed $injectables = null ) : void
$engine Phix_Project\CliEngine
$params array
$injectables mixed
return void
    public function processCommand(CliEngine $engine, $params = array(), $injectables = null)
    {
        // we need to wrap our code to catch old-style PHP errors
        $legacyHandler = new Legacy_ErrorHandler();
        try {
            $returnCode = $legacyHandler->run([$this, 'processInsideLegacyHandler'], [$engine, $params, $injectables]);
            return $returnCode;
        } catch (Exception $e) {
            $injectables->output->logCliError($e->getMessage());
            exit(1);
        }
    }