You are here

public function Process::enableOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::enableOutput()

Enables fetching output and error output from the underlying process.

Return value

Process

Throws

RuntimeException In case the process is already running

File

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

Class

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

Namespace

Symfony\Component\Process

Code

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