Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions en/appendices/3-5-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ The following is a list of methods that are deprecated and replaced with
* ``outputAs()``
``Cake\Datasource\ModelAwareTrait``
* ``modelType()``
``Cake\Database\Query``
* ``valueBinder()`` is now ``getValueBinder()``
``Cake\Datasource\QueryTrait``
* ``eagerLoaded()`` (now ``isEagerLoaded()``)
``Cake\Event\EventDispatcherTrait``
* ``eventManager()``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No note about getEventManager()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The headings indicate that methods are getting getX and setX methods added.

``Cake\Error\Debugger``
* ``outputAs()``
``Cake\Http\ServerRequest``
* ``env()`` (now ``getEnv()`` / ``withEnv()``)
``Cake\ORM\LocatorAwareTrait``
* ``tableLocator()``
``Cake\Utility\Security``
* ``salt()``
``Cake\View\View``
Expand Down Expand Up @@ -70,6 +76,11 @@ behavior that may affect your application:
requests. Instead the ``Cookie`` header and internal CookieCollection are
used. This should only effect applications that have a custom HTTP adapter in
their clients.
* Multi-word subcommand names previouly required camelBacked names to be used
when invoking shells. Now subcommands can be invoked with underscored_names.
For example: ``cake tool initMyDb`` can now be called with ``cake tool
init_my_db``. If your shells previously bound two subcommands with different
inflections, only the last bound command will function.

New Features
============
Expand Down
6 changes: 6 additions & 0 deletions en/console-and-shells.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,12 @@ When defining a subcommand you can use the following options:

Adding subcommands can be done as part of a fluent method chain.


.. versionchanged:: 3.5.0
When adding multi-word subcommands you can now invoke those commands using
``snake_case`` in addition to the camelBacked form.


Building a ConsoleOptionParser from an Array
--------------------------------------------

Expand Down