Skip to content

Commit a203156

Browse files
authored
Merge pull request #8163 from cakephp/docs/add-consoleio-method-headers
Add ConsoleIo method headers to input-output documentation
2 parents d7d74ce + e4481df commit a203156

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)