Class StreamOutput
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));
- Symfony\Component\Console\Output\Output implements Symfony\Component\Console\Output\OutputInterface
- Symfony\Component\Console\Output\StreamOutput
Direct known subclasses
Symfony\Component\Console\Output\ConsoleOutput
Namespace: Symfony\Component\Console\Output
Author: Fabien Potencier fabien@symfony.com
Located at Output/StreamOutput.php
Author: Fabien Potencier fabien@symfony.com
Located at Output/StreamOutput.php
public
|
#
__construct( resource $stream, integer $verbosity = self::VERBOSITY_NORMAL, boolean|null $decorated = null,
Constructor. |
public
resource
|
|
protected
|
|
protected
boolean
|
getFormatter(),
getVerbosity(),
isDebug(),
isDecorated(),
isQuiet(),
isVerbose(),
isVeryVerbose(),
setDecorated(),
setFormatter(),
setVerbosity(),
write(),
writeln()
|