From 418e64ffbe0df1c881ea72cf5b46e0220c4d29ee Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Mon, 17 Feb 2025 09:12:29 +0100 Subject: [PATCH 1/4] Change app chapter to be moved --- migrations/54-60/removed-backward-incompatibility.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/migrations/54-60/removed-backward-incompatibility.md b/migrations/54-60/removed-backward-incompatibility.md index fb7b001e..2592e188 100644 --- a/migrations/54-60/removed-backward-incompatibility.md +++ b/migrations/54-60/removed-backward-incompatibility.md @@ -18,10 +18,13 @@ There should be an explanation of how to mitigate the removals / changes. - https://github.com/joomla/joomla-cms/pull/42890 - Description: The CMS Input namespace `\Joomla\CMS\Input` has been removed. The CMS core code has switched the code to the Framework Input library with the namespace `\Joomla\Input`, which is very much a drop-in replacement. This is especially of relevance if you are using the MVC classes, which now use the framework class. Make sure that your code imports the correct class. -### CMS BaseApplication and CLI classes have been removed +### CMS BaseApplication and CLI classes got moved to the compat plugin -- PR: https://github.com/joomla/joomla-cms/pull/42884 -- Description: The class `\Joomla\CMS\Application\BaseApplication` and `\Joomla\CMS\Application\CliApplication` respective CLI input classes have been removed. The CMS core code has been switched to use the Application package of the Joomla Framework. Any reference to these classes should be replaced with the namespace `\Joomla\Application`. Cli apps should be replaced by console plugins. +- PR's: + - https://github.com/joomla/joomla-cms/pull/42884 + - https://github.com/joomla/joomla-cms/pull/44926 +- Folder: libraries/src/Application +- Description: The class `\Joomla\CMS\Application\BaseApplication` and `\Joomla\CMS\Application\CliApplication` with the respective CLI input classes have been deprecated. For Joomla 6.0 they have been moved to the compat plugin and will finally be completely removed in 7.0. Any reference to these classes should be replaced with the namespace `\Joomla\Application`. Cli apps should be replaced by console plugins. ### UTC is used instead of GMT @@ -167,4 +170,3 @@ if ($app instanceof \Joomla\CMS\Application\ConsoleApplication) { - `\Joomla\CMS\Access\Rules::getAllowed()` now returns a `stdClass` - `\Joomla\CMS\MVC\Controller\ApiController` uses a `Registry` object for the model state. - `\Joomla\CMS\User\UserHelper::getProfile()` returns a `stdClass` object now. - From f4177a83844bac4132da4129e5b9c1d0b31d8fb9 Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Mon, 17 Feb 2025 13:07:24 +0100 Subject: [PATCH 2/4] Move to compat plugin --- migrations/54-60/compat-plugin.md | 5 +++++ migrations/54-60/removed-backward-incompatibility.md | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/migrations/54-60/compat-plugin.md b/migrations/54-60/compat-plugin.md index 2f56c4c2..2466e947 100644 --- a/migrations/54-60/compat-plugin.md +++ b/migrations/54-60/compat-plugin.md @@ -18,4 +18,9 @@ The plugin is implemented as "Behaviour" plugin type to guarantee that is loaded For more detail check [Compatibility Plugin Joomla! 5.0](https://manual.joomla.org/migrations/44-50/compat-plugin). +### CMS BaseApplication and CLI classes +- PR's: + - https://github.com/joomla/joomla-cms/pull/42884 + - https://github.com/joomla/joomla-cms/pull/44926 +- Description: Any reference to the class `\Joomla\CMS\Application\BaseApplication` and `\Joomla\CMS\Application\CliApplication` with the respective CLI input classes should be replaced with the namespace `\Joomla\Application`. Cli apps should be replaced by console plugins. diff --git a/migrations/54-60/removed-backward-incompatibility.md b/migrations/54-60/removed-backward-incompatibility.md index 2592e188..4476c82c 100644 --- a/migrations/54-60/removed-backward-incompatibility.md +++ b/migrations/54-60/removed-backward-incompatibility.md @@ -18,14 +18,6 @@ There should be an explanation of how to mitigate the removals / changes. - https://github.com/joomla/joomla-cms/pull/42890 - Description: The CMS Input namespace `\Joomla\CMS\Input` has been removed. The CMS core code has switched the code to the Framework Input library with the namespace `\Joomla\Input`, which is very much a drop-in replacement. This is especially of relevance if you are using the MVC classes, which now use the framework class. Make sure that your code imports the correct class. -### CMS BaseApplication and CLI classes got moved to the compat plugin - -- PR's: - - https://github.com/joomla/joomla-cms/pull/42884 - - https://github.com/joomla/joomla-cms/pull/44926 -- Folder: libraries/src/Application -- Description: The class `\Joomla\CMS\Application\BaseApplication` and `\Joomla\CMS\Application\CliApplication` with the respective CLI input classes have been deprecated. For Joomla 6.0 they have been moved to the compat plugin and will finally be completely removed in 7.0. Any reference to these classes should be replaced with the namespace `\Joomla\Application`. Cli apps should be replaced by console plugins. - ### UTC is used instead of GMT - PR: https://github.com/joomla/joomla-cms/pull/43912 From d5b811c1c770295eca9272431139cc3274f405d1 Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Wed, 30 Apr 2025 13:31:27 +0200 Subject: [PATCH 3/4] Update removed-backward-incompatibility.md --- migrations/54-60/removed-backward-incompatibility.md | 1 + 1 file changed, 1 insertion(+) diff --git a/migrations/54-60/removed-backward-incompatibility.md b/migrations/54-60/removed-backward-incompatibility.md index b0b1c6dd..f4717481 100644 --- a/migrations/54-60/removed-backward-incompatibility.md +++ b/migrations/54-60/removed-backward-incompatibility.md @@ -232,6 +232,7 @@ If you need UTF8-compatible string functions from PHP, have a look at the [jooml ```php // Old: $table = Table::getInstance('content'); +``` // New: $table = new \Joomla\CMS\Table\Content($db); From 893f83a4809d5db708f8ddca850140bb43ab7e8a Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Wed, 30 Apr 2025 13:32:07 +0200 Subject: [PATCH 4/4] Update removed-backward-incompatibility.md --- migrations/54-60/removed-backward-incompatibility.md | 1 - 1 file changed, 1 deletion(-) diff --git a/migrations/54-60/removed-backward-incompatibility.md b/migrations/54-60/removed-backward-incompatibility.md index f4717481..b0b1c6dd 100644 --- a/migrations/54-60/removed-backward-incompatibility.md +++ b/migrations/54-60/removed-backward-incompatibility.md @@ -232,7 +232,6 @@ If you need UTF8-compatible string functions from PHP, have a look at the [jooml ```php // Old: $table = Table::getInstance('content'); -``` // New: $table = new \Joomla\CMS\Table\Content($db);