From e4481dfeb30a8097eef7e8c648db034b0dfab51b Mon Sep 17 00:00:00 2001 From: mscherer Date: Tue, 27 Jan 2026 10:49:54 +0100 Subject: [PATCH] Add ConsoleIo method headers to input-output documentation Add method-level headers for ConsoleIo::out() and ConsoleIo::err() so VitePress generates proper anchor links that can be referenced from source code @link annotations. --- docs/en/console-commands/input-output.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/en/console-commands/input-output.md b/docs/en/console-commands/input-output.md index d04ccd80a5..1f66a77b51 100644 --- a/docs/en/console-commands/input-output.md +++ b/docs/en/console-commands/input-output.md @@ -214,12 +214,20 @@ $io->createFile('bower.json', $stuff, true); ## Creating Output -Writing to `stdout` and `stderr` is another common operation in CakePHP: +### ConsoleIo::out() + +Writing to `stdout` is done using the `out()` method: ``` php // Write to stdout $io->out('Normal message'); +``` + +### ConsoleIo::err() +Writing to `stderr` is done using the `err()` method: + +``` php // Write to stderr $io->err('Error message'); ```