protected function createProcess()
    {
        $class = config('horizon.fast_termination')
                    ? BackgroundProcess::class
                    : Process::class;

        return new WorkerProcess($class::fromShellCommandline(
            $this->options->toWorkerCommand(), $this->options->directory
        )->setTimeout(null)->disableOutput());
    }
protected function createProcess()
    {
        $class = config('horizon.fast_termination')
                    ? BackgroundProcess::class
                    : Process::class;

        return new WorkerProcess($class::fromShellCommandline(
            $this->options->toWorkerCommand(), $this->options->directory
        )->setTimeout(null)->disableOutput());
    }
protected function createProcess ( ) { $ class = config ( 'horizon.fast_termination' ) ? BackgroundProcess :: class : Process :: class ; return new WorkerProcess ( $ class :: fromShellCommandline ( $ this -> options -> toWorkerCommand ( ) , $ this -> options -> directory ) -> setTimeout ( null ) -> disableOutput ( ) ) ; }
Create a new process instance.

@return \Laravel\Horizon\WorkerProcess
Create a new process instance .