Skip to content

docs: use $this->getOutput() and $this->getPrompt() in the modern command samples - #10711

Merged
paulbalandan merged 1 commit into
codeigniter4:4.8from
paulbalandan:modern-command-doc-samples
Nov 3, 2026
Merged

paulbalandan merged 1 commit into
codeigniter4:4.8from
paulbalandan:modern-command-doc-samples

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
The framework's own modern commands now write through $this->getOutput() and prompt through $this->getPrompt(). This brings the user guide samples in line with them. The migration map gains an entry for the static writers, pointing to $this->getOutput().

009 keeps CLI:: on purpose, since it is the legacy BaseCommand side of the comparison.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conform to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added 4.8 PRs that target the `4.8` branch. documentation Pull requests for documentation only labels Nov 3, 2026
@paulbalandan
paulbalandan merged commit 0b98c7e into codeigniter4:4.8 Nov 3, 2026
14 checks passed
@paulbalandan
paulbalandan deleted the modern-command-doc-samples branch November 3, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.8 PRs that target the `4.8` branch. documentation Pull requests for documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants