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>
Api
Located at laravel/vendor/Symfony/Component/Console/Output/StreamOutput.php
Author: Fabien Potencier <fabien@symfony.com>
Api
Located at laravel/vendor/Symfony/Component/Console/Output/StreamOutput.php
public
|
#
__construct( mixed $stream, integer $verbosity =
Constructor. |
public
resource
|
|
public
|
|
protected
Boolean
|
getFormatter(),
getVerbosity(),
isDecorated(),
setDecorated(),
setFormatter(),
setVerbosity(),
write(),
writeln()
|
OUTPUT_NORMAL,
OUTPUT_PLAIN,
OUTPUT_RAW,
VERBOSITY_NORMAL,
VERBOSITY_QUIET,
VERBOSITY_VERBOSE
|
private
mixed
|
$stream |
|