Skip to content

Add deprecation note for joomla/joomla-cms#45695 #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 7 additions & 2 deletions migrations/53-54/new-deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down