src/Util/ProcessBuilder.php
public function generate()
    {
        $options = $this->options;

        $arguments = array_merge([$this->binary], (array) $this->arguments);
        $script    = implode(' ', array_map([ProcessUtils::class, 'escapeArgument'], $arguments));
        $process   = new Process(
            $this->applyForceToBackground($script),
            $this->workingDirectory,
            $this->getEnvironmentVariables(),
            $this->input,
            $this->timeout,
            $options
        );

        if ($this->outputDisabled) {
            $process->disableOutput();
        }

        return $process;
    }
public function generate()
    {
        $options = $this->options;

        $arguments = array_merge([$this->binary], (array) $this->arguments);
        $script    = implode(' ', array_map([ProcessUtils::class, 'escapeArgument'], $arguments));
        $process   = new Process(
            $this->applyForceToBackground($script),
            $this->workingDirectory,
            $this->getEnvironmentVariables(),
            $this->input,
            $this->timeout,
            $options
        );

        if ($this->outputDisabled) {
            $process->disableOutput();
        }

        return $process;
    }
public function generate ( ) { $ options = $ this -> options ; $ arguments = array_merge ( [ $ this -> binary ] , ( array ) $ this -> arguments ) ; $ script = implode ( ' ' , array_map ( [ ProcessUtils :: class , 'escapeArgument' ] , $ arguments ) ) ; $ process = new Process ( $ this -> applyForceToBackground ( $ script ) , $ this -> workingDirectory , $ this -> getEnvironmentVariables ( ) , $ this -> input , $ this -> timeout , $ options ) ; if ( $ this -> outputDisabled ) { $ process -> disableOutput ( ) ; } return $ process ; }
Generate the process.

@return Process
Generate the process .