diff --git a/migrations/54-60/removed-backward-incompatibility.md b/migrations/54-60/removed-backward-incompatibility.md index bb9cfc25..2ba07dd7 100644 --- a/migrations/54-60/removed-backward-incompatibility.md +++ b/migrations/54-60/removed-backward-incompatibility.md @@ -65,11 +65,27 @@ $article = $app->bootComponent('content')->getMVCFactory()->createModel('Article echo $article->title; ``` +### None namespaced indexer file removed + +- PR: https://github.com/joomla/joomla-cms/pull/44646 +- Folder: administrator/components/com_finder/helpers/indexer +- Description: The files in /administrator/components/com_finder/helpers/indexer were containing the none namespaced classes and are left only for legacy include code. They are empty as class alias do exist for them already. The include code in extensions can be removed and the namespaced classes should be used as they are autoloaded. For example you can use + +```php +// Old: +require_once JPATH_ADMINISTRATOR . '/components/com_finder/helpers/indexer/helper.php'; +FinderIndexerHelper::getFinderPluginId(); + +// New: +Joomla\Component\Finder\Administrator\Helper\FinderHelper::getFinderPluginId(); +``` + ### App variable is removed in plugins - PR: https://github.com/joomla/joomla-cms/pull/44647 - Folder: plugins - Description: The `$app` variable is left in some plugins for layout overrides of the plugins/tmpl folder and is not used anymore in the plugin class itself and the respective layouts. The `getApplication` function should be used instead + ```php // Old: $app = $this->app;