Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::getDescriptors

Creates the descriptors needed by the proc_open.

1 call to Process::getDescriptors()
Process::start in vendor/symfony/process/Process.php
Starts the process and returns after writing the input to STDIN.

File

vendor/symfony/process/Process.php, line 1275

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

private function getDescriptors(bool $hasCallback) : array {
    if ($this->input instanceof \Iterator) {
        $this->input
            ->rewind();
    }
    if ('\\' === \DIRECTORY_SEPARATOR) {
        $this->processPipes = new WindowsPipes($this->input, !$this->outputDisabled || $hasCallback);
    }
    else {
        $this->processPipes = new UnixPipes($this->isTty(), $this->isPty(), $this->input, !$this->outputDisabled || $hasCallback);
    }
    return $this->processPipes
        ->getDescriptors();
}
RSS feed
Powered by Drupal