You are here

public static function UnixPipes::create 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::create()

Creates a new UnixPipes instance.

Parameters

Process $process:

string|resource $input:

Return value

UnixPipes

1 call to UnixPipes::create()
Process::getDescriptors in vendor/symfony/process/Process.php
Creates the descriptors needed by the proc_open.

File

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

Class

UnixPipes
UnixPipes implementation uses unix pipes as handles.

Namespace

Symfony\Component\Process\Pipes

Code

public static function create(Process $process, $input) {
  return new static($process
    ->isTty(), $process
    ->isPty(), $input, $process
    ->isOutputDisabled());
}