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
Located at Output/ConsoleOutput.php
Author: Fabien Potencier fabien@symfony.com
Located at Output/ConsoleOutput.php
public
|
#
__construct( integer $verbosity = self::VERBOSITY_NORMAL, boolean|null $decorated = null,
Constructor. |
public
|
|
public
|
#
setFormatter(
Sets output formatter. |
public
|
|
public
|
|
public
|
#
setErrorOutput(
Sets the OutputInterface used for errors. |
protected
boolean
|
#
hasStdoutSupport( )
Returns true if current environment supports writing console output to STDOUT. |
protected
boolean
|
#
hasStderrSupport( )
Returns true if current environment supports writing console output to STDERR. |
doWrite(),
getStream(),
hasColorSupport()
|
getFormatter(),
getVerbosity(),
isDebug(),
isDecorated(),
isQuiet(),
isVerbose(),
isVeryVerbose(),
write(),
writeln()
|