Class ConsoleOutput
ConsoleOutput is the default class for all CLI output. It uses STDOUT.
This class is a convenient wrapper around StreamOutput
.
$output = new ConsoleOutput();
This is equivalent to:
$output = new StreamOutput(fopen('php://stdout', 'w'));
- Symfony\Component\Console\Output\Output implements Symfony\Component\Console\Output\OutputInterface
- Symfony\Component\Console\Output\StreamOutput
- Symfony\Component\Console\Output\ConsoleOutput implements Symfony\Component\Console\Output\ConsoleOutputInterface
Namespace: Symfony\Component\Console\Output
Author: Fabien Potencier <fabien@symfony.com>
Api
Located at console/Symfony/Component/Console/Output/ConsoleOutput.php
Author: Fabien Potencier <fabien@symfony.com>
Api
Located at console/Symfony/Component/Console/Output/ConsoleOutput.php
public
|
#
__construct( integer $verbosity =
Constructor. |
public
|
|
public
|
#
setFormatter(
Sets output formatter. |
public
|
|
public
|
|
public
|
|
protected
boolean
|
#
hasStdoutSupport( )
Returns true if current environment supports writing console output to STDOUT. |
doWrite(),
getStream(),
hasColorSupport()
|
getFormatter(),
getVerbosity(),
isDecorated(),
write(),
writeln()
|
OUTPUT_NORMAL,
OUTPUT_PLAIN,
OUTPUT_RAW,
VERBOSITY_NORMAL,
VERBOSITY_QUIET,
VERBOSITY_VERBOSE
|