-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Installer: Remove dependency on Adapter class #43792
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
Conversation
I have tested this item 🔴 unsuccessfully on ce7745c
Applied the patch by
|
I fixed the issue. Could you please test again? |
I have tested this item ✅ successfully on c4bba80
|
I have tested this item ✅ successfully on 870546b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43792. |
I've restored @muhme 's test result in the issue tracker because the commit which has invalidated the human tests count was just a clean branch update. @Bodge-IT Please, when doing branch updates which are clean, i.e. not had conflicts to be resolved, then restore any previous human tests in the issue tracker by using the "Alter test" button. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43792. |
Thanks for the persistence on this @Hackwar and to Heiko for testing so thoroughly |
Thank you!!! |
* | ||
* @throws \InvalidArgumentException | ||
* @since 3.4 | ||
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've just noticed that the deprecation message here is wrong. If we deprecate this in 6.0, it can not be removed before 8.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method comes from the adapter class and has been deprecated there since 1.5. It is now copied over here and directly deprecated. That should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then the deprecation comment should be adapted. Not sure though how a "since 3.4" fit to "deprecated 1.5".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the `since 3.4 is wrong and comes from incorrect modifications at that time.
Summary of Changes
This is an effort to remove deprecated code from the system. The Installer class depends on the Adapter class, which in turn has been deprecated for a long time already. This PR removes the code of the Adapter class from the Installer class and replaces it with some sane methods to add adapters when required.
This PR does some cleanup and it adds the following methods:
I reused some method names from the Adapter class. This PR is a b/c break and thus targeted towards 6.0.
Testing Instructions
php cli/joomla.php extension:install
)There should be no difference between before and after applying the change and the extension should be installed like normal.
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: CMS Adapter removed Manual#301
No documentation changes for manual.joomla.org needed