You are here

public function UnixPipes::__construct in Zircon Profile 8

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

File

vendor/symfony/process/Pipes/UnixPipes.php, line 32

Class

UnixPipes
UnixPipes implementation uses unix pipes as handles.

Namespace

Symfony\Component\Process\Pipes

Code

public function __construct($ttyMode, $ptyMode, $input, $disableOutput) {
  $this->ttyMode = (bool) $ttyMode;
  $this->ptyMode = (bool) $ptyMode;
  $this->disableOutput = (bool) $disableOutput;
  if (is_resource($input)) {
    $this->input = $input;
  }
  else {
    $this->inputBuffer = (string) $input;
  }
}