You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e64be5e
Browse filesBrowse the repository at this point in the historyBrowse files
feat: Add isAvailable() method to AbstractCommand (#10228)
* feat: Add `isAvailable()` method to AbstractCommand
* Add docs and changelog
* cs-fix
* fix some english and references
* apply suggestions
* Add period
* apply suggestions
* Added more tests
* Revert PHPStorm's auto styled code
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.8.0.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ Commands
183
183
========
184
184
185
185
- Added a new attribute-based command style built on :php:class:`AbstractCommand <CodeIgniter\\CLI\\AbstractCommand>` and the ``#[Command]`` attribute,
186
-
with ``configure()`` / ``initialize()`` / ``interact()`` / ``execute()`` hooks and typed ``Argument`` / ``Option`` definitions.
186
+
with ``configure()`` / ``isAvailable()`` / ``initialize()`` / ``interact()`` / ``execute()`` hooks and typed ``Argument`` / ``Option`` definitions.
187
187
The legacy ``BaseCommand`` style continues to work. See :doc:`../cli/cli_modern_commands`.
188
188
- Every modern command now ships with a ``--no-interaction`` / ``-N`` flag that skips the ``interact()`` hook, plus public
189
189
``isInteractive()`` / ``setInteractive()`` methods on ``AbstractCommand``. ``isInteractive()`` also auto-detects piped or
0 commit comments