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

Breadcrumb

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

function Process::getOutput

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/Internal/Process/Service/Process.php \PhpTuf\ComposerStager\Internal\Process\Service\Process::getOutput()

Returns the current output of the process (STDOUT).

Throws

LogicException in case the output has been disabled

LogicException In case the process is not started

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function getOutput() : string {
    $this->readPipesForOutput(__FUNCTION__);
    if (false === ($ret = stream_get_contents($this->stdout, -1, 0))) {
        return '';
    }
    return $ret;
}
RSS feed
Powered by Drupal