ConsoleOutput is the default class for all CLI output. It uses STDOUT and STDERR.
This class is a convenient wrapper around StreamOutput for both STDOUT and STDERR.
$output = new ConsoleOutput(); This is equivalent to:
$output = new StreamOutput(fopen('php://stdout', 'w')); $stdErr = new StreamOutput(fopen('php://stderr', 'w')); - author Fabien Potencier
CloneableInstantiable
| Constants |
| Methods |
public __construct(int $verbosity = 32self::VERBOSITY_NORMAL, ?bool $decorated = NULL, ?Symfony
|
| public getErrorOutput() : Symfony |
| public section() : Symfony Creates a new output section. |
| public setDecorated(bool $decorated) : void |
| public setErrorOutput(Symfony |
| public setFormatter(Symfony |
| public setVerbosity(int $level) : void |
| Methods |
| protected hasStderrSupport() : bool Returns true if current environment supports writing console output to STDERR. |
| protected hasStdoutSupport() : bool Returns true if current environment supports writing console output to STDOUT. |
| Properties |
| private array $consoleSectionOutputs = [] |
| private Symfony |
| Methods |
| private isRunningOS400() : bool Checks if current executing environment is IBM iSeries (OS400), which doesn't properly convert character-encodings between ASCII to EBCDIC. |
private openErrorStream()
|
private openOutputStream()
|