PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
17 Feb 2025

Summary of Changes

Reverts #42890 and moves the classes to the compat plugin instead of easier transition. It uses the same logic as #44240 without the option.

Testing Instructions

  • Enable the compat plugin
  • Add the following code to the file /administrator/components/com_content/tmpl/articles/default.php:
    new \Joomla\CMS\Input\Input();
  • Open the back end articles list with at least one article.

Actual result BEFORE applying this Pull Request

A Class "Joomla\CMS\Input\Input" not found exception is thrown.

Expected result AFTER applying this Pull Request

The articles list is loaded.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org: joomla/Manual#389

  • No documentation changes for manual.joomla.org needed

avatar laoneo laoneo - open - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2025
Category Front End Plugins
avatar laoneo laoneo - change - 17 Feb 2025
Title
Compat/input
[6.0] Add removed Input classes to the compat plugin
avatar laoneo laoneo - edited - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
Labels Added: PR-6.0-dev
avatar laoneo laoneo - change - 17 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 17 Feb 2025
03f7bff 17 Feb 2025 avatar laoneo cs
avatar Hackwar
Hackwar - comment - 17 Feb 2025

Why do we have to add back in all those classes, when most of it is a pretty much direct copy of the framework classes? Why can't we use the alias method? I mean, if you insist on adding back in old classes, I can understand to add the CLI class, but the rest is basically just duplicated code. I don't see why we need that.

avatar laoneo
laoneo - comment - 17 Feb 2025

I leave the decision up to the RM's.

avatar wilsonge
wilsonge - comment - 19 Feb 2025

For the record this one is tricker. Removing the alias from CMSInput functionally changes behavior and forces extensions to change much more of their code as a result. In this very specific case because of that I’m personally against merging this (for the record in favour of merging the other application one)

avatar laoneo
laoneo - comment - 20 Feb 2025

Which alias do you mean? This one? It was added in #43209 after I remove the classes in #42890 and was never in production anyway. So this pr basically restores the 5.x behavior, with the only difference that the classes are moved from libraries to the compat plugin.

avatar wilsonge
wilsonge - comment - 21 Feb 2025

I do mean that one and even though it's not in production it leads to a much bigger b/c break when the compat plugin is disabled.

avatar tekvishal
tekvishal - comment - 22 Feb 2025

getting this error The file marked for modification does not exist: plugins/behaviour/compat/src/classmap/classmap.php


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44925.

avatar tekvishal tekvishal - test_item - 22 Feb 2025 - Tested unsuccessfully
avatar tekvishal
tekvishal - comment - 22 Feb 2025

I have tested this item 🔴 unsuccessfully on 88f0ecd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44925.

Add a Comment

Login with GitHub to post a comment