public function setCommand($command, $cwd = null, array $env = null, $input = null, $timeout = 60, array $options = array())
    {
        if (method_exists(Process::class, 'fromShellCommandline')) {
            $this->process = Process::fromShellCommandline($command, $cwd, $env, $input, $timeout, $options);

        } else {
            $this->process = new Process($command, $cwd, $env, $input, $timeout, $options);
        }
    }
public function setCommand($command, $cwd = null, array $env = null, $input = null, $timeout = 60, array $options = array())
    {
        if (method_exists(Process::class, 'fromShellCommandline')) {
            $this->process = Process::fromShellCommandline($command, $cwd, $env, $input, $timeout, $options);

        } else {
            $this->process = new Process($command, $cwd, $env, $input, $timeout, $options);
        }
    }
public function setCommand ( $ command , $ cwd = null , array $ env = null , $ input = null , $ timeout = 60 , array $ options = array ( ) ) { if ( method_exists ( Process :: class , 'fromShellCommandline' ) ) { $ this -> process = Process :: fromShellCommandline ( $ command , $ cwd , $ env , $ input , $ timeout , $ options ) ; } else { $ this -> process = new Process ( $ command , $ cwd , $ env , $ input , $ timeout , $ options ) ; } }
Set the command to execute as if you would run it in the shell.

@param string $command
Set the command to execute as if you would run it in the shell .