From 5e71939923564ffdce45530842c0cd0421b269f9 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Sun, 6 Jul 2025 20:16:30 +0200 Subject: [PATCH 1/3] Add deprecation note for joomla/joomla-cms#45695 --- migrations/54-60/new-deprecations.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/migrations/54-60/new-deprecations.md b/migrations/54-60/new-deprecations.md index df71bb09..dc78c21c 100644 --- a/migrations/54-60/new-deprecations.md +++ b/migrations/54-60/new-deprecations.md @@ -11,3 +11,7 @@ New Deprecations All the new deprecations that should be aware of and what you should now be using instead. +## Deprecation of `$app` Property in Fields Plugin + +File: administrator/components/com_fields/src/Plugin/FieldsPlugin.php +Replacement: The `$this->app` property is deprecated in the fields plugins. Instead of use `$this->getApplication()` when the plugin is converted to service providers. From 3628dc53d2ef120d5960779964430bb7debd8442 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Sun, 6 Jul 2025 20:20:05 +0200 Subject: [PATCH 2/3] code suggestion --- migrations/54-60/new-deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/54-60/new-deprecations.md b/migrations/54-60/new-deprecations.md index dc78c21c..81111d94 100644 --- a/migrations/54-60/new-deprecations.md +++ b/migrations/54-60/new-deprecations.md @@ -14,4 +14,4 @@ All the new deprecations that should be aware of and what you should now be usin ## Deprecation of `$app` Property in Fields Plugin File: administrator/components/com_fields/src/Plugin/FieldsPlugin.php -Replacement: The `$this->app` property is deprecated in the fields plugins. Instead of use `$this->getApplication()` when the plugin is converted to service providers. +Replacement: The `$this->app` property is deprecated in the fields plugins. Instead, use `$this->getApplication()` when the plugin is converted to service providers. From b0b606d2ed824aa528deb062eca6d505225f64a3 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Sun, 6 Jul 2025 21:23:45 +0200 Subject: [PATCH 3/3] move 53-54 --- migrations/53-54/new-deprecations.md | 9 +++++++-- migrations/54-60/new-deprecations.md | 4 ---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/migrations/53-54/new-deprecations.md b/migrations/53-54/new-deprecations.md index 8863e143..302e7a99 100644 --- a/migrations/53-54/new-deprecations.md +++ b/migrations/53-54/new-deprecations.md @@ -26,13 +26,13 @@ In Joomla 3.2, the `Unified Content Model` was introduced, which was supposed to Related PR: https://github.com/joomla/joomla-cms/pull/44910 -## Deprecation of `registerListeners()` +### Deprecation of `registerListeners()` [43395](https://github.com/joomla/joomla-cms/pull/43395) – CMSPlugin: deprecation for registerListeners - ❌ `registerListeners()` is deprecated in both `Joomla\CMS\Extension\PluginInterface` and `Joomla\CMS\Plugin\CMSPlugin`. - ✅ Instead, implement the `SubscriberInterface`. The method is no longer required in this case. -## Deprecation of `$_db`, `getDbo()`, and `setDbo()` +### Deprecation of `$_db`, `getDbo()`, and `setDbo()` [45165](https://github.com/joomla/joomla-cms/pull/45165) – Replace table _db with DatabaseAwareTrait - ❌ Do not access the `Joomla\CMS\Table\Table::_db` property directly — it will be removed in the future. @@ -44,6 +44,11 @@ Related PR: https://github.com/joomla/joomla-cms/pull/44910 $this->setDatabase($db); ``` +### Deprecation of `$app` Property in Fields Plugin + +File: administrator/components/com_fields/src/Plugin/FieldsPlugin.php +Replacement: The `$this->app` property is deprecated in the fields plugins. Instead, use `$this->getApplication()` when the plugin is converted to service providers. + ## Language String Deprecation Planned to be removed in Joomla! 6.0 is the language string: diff --git a/migrations/54-60/new-deprecations.md b/migrations/54-60/new-deprecations.md index 81111d94..df71bb09 100644 --- a/migrations/54-60/new-deprecations.md +++ b/migrations/54-60/new-deprecations.md @@ -11,7 +11,3 @@ New Deprecations All the new deprecations that should be aware of and what you should now be using instead. -## Deprecation of `$app` Property in Fields Plugin - -File: administrator/components/com_fields/src/Plugin/FieldsPlugin.php -Replacement: The `$this->app` property is deprecated in the fields plugins. Instead, use `$this->getApplication()` when the plugin is converted to service providers.