Skip to main content

New deprecations

================

Developer Note

Since this version of Joomla has not been released yet, this page can change anytime.

All the new deprecations that should be aware of and what you should now be using instead.

Class Deprecations

Joomla\CMS\Http is deprecated

The whole Joomla\CMS\Http package is deprecated in Joomla 6.0 and will be removed in 8.0. Please use the Joomla Framework Joomla\Http package instead. The Framework package is an almost complete drop-in replacement. You only have to pay attention when accessing the data from the Response object. Don't read from the (magic) attributes, but use the PSR-7 methods instead.

Application input property is deprecated

PR: 46000 Files:

  • libraries/vendor/joomla/application/src/AbstractWebApplication.php
  • libraries/src/Application/WebApplication.php Description: The input property is deprecated in the AbstractWebApplication class since Joomla 4.0, but it was not really obvious in the CMS classes because of class hierarchy. Access to the input property got now removed in the framework class but is still available in the CMS classes. It will trigger a deprecated warning when directly called.
// Old code
$app->input->get('foo');
Factory::getApplication()->input->get('foo');

// New:
$app->getInput()->get('foo');
Factory::getApplication()->getInput()->get('foo');

postStoreProcess function in TagsHelper

PR: https://github.com/joomla/joomla-cms/pull/40613 File: libraries/src/Helper/TagsHelper.php Description: With the new possibility to batch remove a tag, the postStoreProcess() function of class \Joomla\CMS\Helper\TagsHelper has been deprecated and will be removed in 7.0. Replacement: New postStore() function which has an additional optional parameter $remove (default value is false) indicating whether the tags in parameter $newTags should be removed. If you set it to true then the parameter $replace is ignored.

batchTag function in AdminModel

PR: https://github.com/joomla/joomla-cms/pull/40613 File: libraries/src/MVC/Model/AdminModel.php Description: With the new possibility to batch remove a tag, the batchTag function of class \Joomla\CMS\MVC\Model\AdminModel has been deprecated and will be removed in 7.0. Replacement: New batchTags function which has an additional optional parameter $removeTags (default value is false) indicating whether the tags in parameter $value have to be removed.