-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Updater: Remove Adapter classes from inheritance #43793
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
@Hackwar Is this still relevant? |
Yes, this is still a necessary PR. |
...Awaiting capability to run updater |
I have tested this item ✅ successfully on 0fbb612
Installed 60 joomla-cms-43793, PHP 8.4.7, enabled 'Log Almost Everything' and 'Log Deprecated API'
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43793. |
Thank you for testing. As far as I can see, none of the warnings you got are related to this PR, right? |
It seems so, as the deprecations are from different files, as touched with this PR. I was uncertain how to check. I checked now again with the three file names they are touched by the PR and result is zero ✅ 👍 😄 |
Unfortunately I had to do one more cleanup by removing a duplicate call to |
Null problemo, let me know when you're done, then I'll test again – my module is now Joomla 6 ready, this was my main effort; maybe put it on DRAFT by then? |
It is ready. You can test this now. |
I have tested this item ✅ successfully on b0685d4
|
I have tested this item ✅ successfully on b0685d4 Used JoomDonation v5.10.9 to update to JoomDonation v5.11.0, also upgraded 2 different Language Packs to latest version. (the Joomla Updater did NOT find the updated version of JoomDonation online, but I was able to install v5.11 on top of v5.10.9 via uploading the file) I did NOT test over CLI or locally. I only tested via online my hosting testing environments. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43793. |
@ exlemor Thank you for testing 👍
If you check the update XML https://joomdonation.com/updates/jdonation.xml, there is no 6.0 target platform, so no update is offered correctly. |
Thanks for testing, RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43793. |
I can't begin to express how happy I am that this is finally done. Thank you to all who tested, reviewed and now merged. I've been trying to fix the adapter classes during the development of 1.6 and tried again in 2.5 and 3.5. For 4.0 unfortunately I didn't get around to fixing this, but now for 6.0 we can finally get rid of this. |
Summary of Changes
This is an effort to remove deprecated code from the system. The Updater 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 Updater 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. This is the corresponding PR to #43792 for the Updater classes.
Testing Instructions
Install an old version of an extension and then run an update for it, both via the normal extension updater and by installing a newer package over the old one. This should work the same both before and after applying the change.
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