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

Breadcrumb

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

function ProcessExecutor::outputHandler

1 call to ProcessExecutor::outputHandler()
ProcessExecutor::runProcess in vendor/composer/composer/src/Composer/Util/ProcessExecutor.php

File

vendor/composer/composer/src/Composer/Util/ProcessExecutor.php, line 288

Class

ProcessExecutor
@author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Util

Code

protected function outputHandler(string $type, string $buffer) : void {
    if ($this->captureOutput) {
        return;
    }
    if (null === $this->io) {
        echo $buffer;
        return;
    }
    if (Process::ERR === $type) {
        $this->io
            ->writeErrorRaw($buffer, false);
    }
    else {
        $this->io
            ->writeRaw($buffer, false);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal