From 789731d54da370f7e879cd045ad18cb0cbf180da Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 24 Apr 2017 22:03:18 -0400 Subject: [PATCH 1/4] Document changes in cakephp/cakephp#10569 --- en/appendices/3-5-migration-guide.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/en/appendices/3-5-migration-guide.rst b/en/appendices/3-5-migration-guide.rst index bd6ce9bd29..88d10b7c15 100644 --- a/en/appendices/3-5-migration-guide.rst +++ b/en/appendices/3-5-migration-guide.rst @@ -32,6 +32,8 @@ 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\Error\Debugger`` From 3226e724cf8612ee522590103b0708990d1496d8 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 24 Apr 2017 22:04:30 -0400 Subject: [PATCH 2/4] Document changes in cakephp/cakephp#10573 --- en/appendices/3-5-migration-guide.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/en/appendices/3-5-migration-guide.rst b/en/appendices/3-5-migration-guide.rst index 88d10b7c15..61a3d15a38 100644 --- a/en/appendices/3-5-migration-guide.rst +++ b/en/appendices/3-5-migration-guide.rst @@ -36,6 +36,8 @@ The following is a list of methods that are deprecated and replaced with * ``valueBinder()`` is now ``getValueBinder()`` ``Cake\Datasource\QueryTrait`` * ``eagerLoaded()`` (now ``isEagerLoaded()``) +``Cake\Event\EventDispatcherTrait`` + * ``eventManager()`` ``Cake\Error\Debugger`` * ``outputAs()`` ``Cake\Http\ServerRequest`` From 0b0ecc1058b13ab6f6d5e2951b0ef4c101cf481a Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 26 Apr 2017 21:22:05 -0400 Subject: [PATCH 3/4] Add deprecation for cakephp/cakephp#10572 --- en/appendices/3-5-migration-guide.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/en/appendices/3-5-migration-guide.rst b/en/appendices/3-5-migration-guide.rst index 61a3d15a38..8ed68b8804 100644 --- a/en/appendices/3-5-migration-guide.rst +++ b/en/appendices/3-5-migration-guide.rst @@ -42,6 +42,8 @@ The following is a list of methods that are deprecated and replaced with * ``outputAs()`` ``Cake\Http\ServerRequest`` * ``env()`` (now ``getEnv()`` / ``withEnv()``) +``Cake\ORM\LocatorAwareTrait`` + * ``tableLocator()`` ``Cake\Utility\Security`` * ``salt()`` ``Cake\View\View`` From d469cf73e26d481ca791cba076441a03eda21fc1 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 26 Apr 2017 21:52:25 -0400 Subject: [PATCH 4/4] Document changes in cakephp/cakephp#10574 --- en/appendices/3-5-migration-guide.rst | 5 +++++ en/console-and-shells.rst | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/en/appendices/3-5-migration-guide.rst b/en/appendices/3-5-migration-guide.rst index 8ed68b8804..7be42f934c 100644 --- a/en/appendices/3-5-migration-guide.rst +++ b/en/appendices/3-5-migration-guide.rst @@ -76,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 ============ diff --git a/en/console-and-shells.rst b/en/console-and-shells.rst index 876c8c061c..50a4d8007e 100644 --- a/en/console-and-shells.rst +++ b/en/console-and-shells.rst @@ -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 --------------------------------------------