[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/console/Symfony/Component/Console/Output/ -> StreamOutput.php (summary)

(no description)

File Size: 107 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StreamOutput:: (4 methods):
  __construct()
  getStream()
  doWrite()
  hasColorSupport()


Class: StreamOutput  - X-Ref

StreamOutput writes the output to a given stream.

Usage:

$output = new StreamOutput(fopen('php://stdout', 'w'));

As `StreamOutput` can use any stream, you can also use a file:

$output = new StreamOutput(fopen('/path/to/output.log', 'a', false));

__construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)   X-Ref
Constructor.

param: resource                      $stream    A stream resource
param: int                           $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
param: bool|null                     $decorated Whether to decorate messages (null for auto-guessing)
param: OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)

getStream()   X-Ref
Gets the stream attached to this StreamOutput instance.

return: resource A stream resource

doWrite($message, $newline)   X-Ref
{@inheritdoc}


hasColorSupport()   X-Ref
Returns true if the stream supports colorization.

Colorization is disabled if not supported by the stream:

-  Windows before 10.0.10586 without Ansicon, ConEmu or Mintty
-  non tty consoles

return: bool true if the stream supports colorization, false otherwise



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1