OutputWriter
API reference › Scaffold › Console › OutputWriter
Implemented by 2 types
Writes service messages to standard output or standard error, appending one newline per message.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
writeStderr() abstract | Writes $message to the standard error stream followed by a trailing newline. | OutputWriter |
writeStdout() abstract | Writes $message to the standard output stream followed by a trailing newline. | OutputWriter |
Method details
Section titled “Method details”writeStderr()
Section titled “writeStderr() ”abstract public function writeStderr(string $message): voidWrites $message to the standard error stream followed by a trailing newline.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | Message without a trailing newline; the writer appends one. |
writeStdout()
Section titled “writeStdout() ”abstract public function writeStdout(string $message): voidWrites $message to the standard output stream followed by a trailing newline.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | Message without a trailing newline; the writer appends one. |