ComposerIoWriter
API reference › Scaffold › Console › ComposerIoWriter
Adapts Composer IO to OutputWriter, so the Composer-free scaffold core can report through a Composer run.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a writer for Composer IO. | ComposerIoWriter |
writeStderr() | Writes $message with IOInterface::writeError(). | ComposerIoWriter |
writeStdout() | Writes $message with IOInterface::write(). | ComposerIoWriter |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(Composer\IO\IOInterface $io)Creates a writer for Composer IO.
Parameters
| Parameter | Type | Description |
|---|---|---|
$io | Composer\ | Composer IO that receives the messages. |
writeStderr()
Section titled “writeStderr() ”public function writeStderr(string $message): voidWrites $message with IOInterface::writeError().
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | Message without a trailing newline; the writer appends one. |
writeStdout()
Section titled “writeStdout() ”public function writeStdout(string $message): voidWrites $message with IOInterface::write().
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | Message without a trailing newline; the writer appends one. |