You are here

private function ConsoleOutput::openErrorStream in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Output/ConsoleOutput.php \Symfony\Component\Console\Output\ConsoleOutput::openErrorStream()

Return value

resource

1 call to ConsoleOutput::openErrorStream()
ConsoleOutput::__construct in vendor/symfony/console/Output/ConsoleOutput.php
Constructor.

File

vendor/symfony/console/Output/ConsoleOutput.php, line 150

Class

ConsoleOutput
ConsoleOutput is the default class for all CLI output. It uses STDOUT.

Namespace

Symfony\Component\Console\Output

Code

private function openErrorStream() {
  $errorStream = $this
    ->hasStderrSupport() ? 'php://stderr' : 'php://output';
  return fopen($errorStream, 'w');
}