Skip to content

Commit a7fdc17

Browse files
committed
add changelog
1 parent ed5a3b9 commit a7fdc17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

user_guide_src/source/changelogs/v4.8.0.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Interface Changes
4343
Method Signature Changes
4444
========================
4545

46+
- **CLI:** The ``Console::run()`` method now accepts an optional ``array $tokens`` parameter. This allows you to pass an array of command tokens directly to the console runner, which is useful for testing or programmatically running commands. If not provided, it will default to using the global ``$argv``.
4647
- **CodeIgniter:** The deprecated parameters in methods have been removed:
4748
- ``CodeIgniter\CodeIgniter::handleRequest()`` no longer accepts the deprecated ``$cacheConfig`` and ``$returnResponse`` parameters.
4849
- ``$cacheConfig`` is no longer used and is now hard deprecated. A deprecation notice will be triggered if this is passed to the method.
@@ -147,6 +148,7 @@ Commands
147148
For example: ``spark my:command -- --myarg`` will pass ``--myarg`` as an argument instead of an option.
148149
- ``CLI`` now supports options with values specified using an equals sign (e.g., ``--option=value``) in addition to the existing space-separated syntax (e.g., ``--option value``).
149150
This provides more flexibility in how you can pass options to commands.
151+
- Likewise, the ``command()`` function now also supports the above enhancements for command-line option parsing when using the function to run commands from code.
150152

151153
Testing
152154
=======
@@ -231,6 +233,7 @@ Changes
231233
Deprecations
232234
************
233235

236+
- The ``Boot::initializeConsole()`` method is now deprecated and will be removed in a future release.
234237
- **CLI:** The ``CLI::parseCommandLine()`` method is now deprecated and will be removed in a future release. The ``CLI`` class now uses the new ``CommandLineParser`` class to handle command-line argument parsing.
235238
- **HTTP:** The ``CLIRequest::parseCommand()`` method is now deprecated and will be removed in a future release. The ``CLIRequest`` class now uses the new ``CommandLineParser`` class to handle command-line argument parsing.
236239

0 commit comments

Comments
 (0)