Lines Matching defs:commandline
56 private $commandline;
149 $this->commandline = $command;
195 $process->commandline = $command;
315 if (\is_array($commandline = $this->commandline)) {
316 $commandline = implode(' ', array_map([$this, 'escapeArgument'], $commandline));
320 $commandline = 'exec '.$commandline;
323 $commandline = $this->replacePlaceholders($commandline, $env);
327 $commandline = $this->prepareWindowsCommandLine($commandline, $env);
333 $commandline = '{ ('.$commandline.') <&3 3<&- 3>/dev/null & } 3<&0;';
334 $commandline .= 'pid=$!; echo $pid >&3; wait $pid; code=$?; echo $code >&3; exit $code';
352 $this->process = @proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options);
989 return \is_array($this->commandline) ? implode(' ', array_map([$this, 'escapeArgument'], $this->commandline)) : $this->commandline;
1634 private function replacePlaceholders(string $commandline, array $env)
1636 return preg_replace_callback('/"\$\{:([_a-zA-Z]++[_a-zA-Z0-9]*+)\}"/', function ($matches) use ($commandline, $env) {
1638 throw new InvalidArgumentException(sprintf('Command line is missing a value for parameter "%s": ', $matches[1]).$commandline);
1642 }, $commandline);