Skip to content

Commit e4481df

Browse files
committed
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.
1 parent c8bcc0e commit e4481df

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/en/console-commands/input-output.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,20 @@ $io->createFile('bower.json', $stuff, true);
214214

215215
## Creating Output
216216

217-
Writing to `stdout` and `stderr` is another common operation in CakePHP:
217+
### ConsoleIo::out()
218+
219+
Writing to `stdout` is done using the `out()` method:
218220

219221
``` php
220222
// Write to stdout
221223
$io->out('Normal message');
224+
```
225+
226+
### ConsoleIo::err()
222227

228+
Writing to `stderr` is done using the `err()` method:
229+
230+
``` php
223231
// Write to stderr
224232
$io->err('Error message');
225233
```

0 commit comments

Comments
 (0)