Symfony\Component\Process\Process::setCommandLine PHP Method

setCommandLine() public method

Sets the command line to be executed.
public setCommandLine ( string $commandline ) : self
$commandline string The command to execute
return self The current Process instance
    public function setCommandLine($commandline)
    {
        $this->commandline = $commandline;
        return $this;
    }

Usage Example

 /**
  * @When /^I run behat$/
  */
 public function iRunBehat()
 {
     $this->process->setWorkingDirectory($this->workingDir);
     $this->process->setCommandLine(sprintf('%s %s %s %s', $this->phpBin, escapeshellarg(BEHAT_BIN_PATH), strtr('--format-settings=\'{"timer": false}\'', array('\'' => '"', '"' => '\\"')), '--format=progress'));
     $this->process->start();
     $this->process->wait();
 }
All Usage Examples Of Symfony\Component\Process\Process::setCommandLine