You are here

public function ProcessBuilder::setPrefix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/ProcessBuilder.php \Symfony\Component\Process\ProcessBuilder::setPrefix()

Adds a prefix to the command string.

The prefix is preserved when resetting arguments.

Parameters

string|array $prefix A command prefix or an array of command prefixes:

Return value

ProcessBuilder

File

vendor/symfony/process/ProcessBuilder.php, line 79

Class

ProcessBuilder
Process builder.

Namespace

Symfony\Component\Process

Code

public function setPrefix($prefix) {
  $this->prefix = is_array($prefix) ? $prefix : array(
    $prefix,
  );
  return $this;
}