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

Breadcrumb

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

function Process::enableOutput

Enables fetching output and error output from the underlying process.

Return value

$this

Throws

RuntimeException In case the process is already running

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function enableOutput() : static {
    if ($this->isRunning()) {
        throw new RuntimeException('Enabling output while the process is running is not possible.');
    }
    $this->outputDisabled = false;
    return $this;
}
RSS feed
Powered by Drupal