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));
- author Fabien Potencier
CloneableInstantiable
| Constants |
| Methods |
public __construct( $stream, int $verbosity = 32self::VERBOSITY_NORMAL, ?bool $decorated = NULL, ?Symfony
|
| public getStream() Gets the stream attached to this StreamOutput instance.
|
| Methods |
| protected doWrite(string $message, bool $newline) : void |
| protected hasColorSupport() : bool Returns true if the stream supports colorization. Colorization is disabled if not supported by the stream: This is tricky on Windows, because Cygwin, Msys2 etc emulate pseudo terminals via named pipes, so we can only check the environment. Reference: Composer\XdebugHandler\Process::supportsColor https://github.com/composer/xdebug-handler
|
| Properties |
private $stream = NULL
|