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

Breadcrumb

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

function Process::readPipesForOutput

Reads pipes for the freshest output.

Parameters

string $caller The name of the method that needs fresh outputs:

bool $blocking Whether to use blocking calls or not:

Throws

LogicException in case output has been disabled or process is not started

5 calls to Process::readPipesForOutput()
Process::getErrorOutput in vendor/symfony/process/Process.php
Returns the current error output of the process (STDERR).
Process::getIncrementalErrorOutput in vendor/symfony/process/Process.php
Returns the errorOutput incrementally.
Process::getIncrementalOutput in vendor/symfony/process/Process.php
Returns the output incrementally.
Process::getIterator in vendor/symfony/process/Process.php
Returns an iterator to the output of the process, with the output type as keys (Process::OUT/ERR).
Process::getOutput in vendor/symfony/process/Process.php
Returns the current output of the process (STDOUT).

File

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

Class

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

Namespace

Symfony\Component\Process

Code

private function readPipesForOutput(string $caller, bool $blocking = false) : void {
    if ($this->outputDisabled) {
        throw new LogicException('Output has been disabled.');
    }
    $this->requireProcessIsStarted($caller);
    $this->updateStatus($blocking);
}
RSS feed
Powered by Drupal