-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[5.2][Events] Use event classes for Extension plugins #43617
Conversation
PR Review 🔍
|
PR Code Suggestions ✨
|
I have tested this item ✅ successfully on 2461713 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
I have tested this item ✅ successfully on 2461713 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
🙈 no. Can I do that on a PBF server site? |
@crommie I think yes. They can later revert it to the initial state, as far as I know. |
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
I have tested this item ✅ successfully on 2461713 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
Just checking: does "reinstall core files" use the same process or is that entirely different? |
@crommie Reinstall core is ok, that also uses the Joomla Update component as if it was an update. P.S.: But you should be on the custom update URL created by Drone for this PR so the PR is still applied after the update. |
Hi @richard67, Based on your comment, I tested the Joomla Update process for this PR and it worked :) Thanks. |
Sure @richard67 , I will submit it again. Olivier just told me he didn't have rights to restore the human tests. ;( |
I have tested this item ✅ successfully on dcf15b1 Installed multiple extensions (and updated 1 of them and uninstalled them - just in case) successfully.. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
I have tested this item ✅ successfully on dcf15b1 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43617. |
Thank you for this contribution @Fedik. |
User description
Summary of Changes
Update
extension
andinstaller
plugins to useSubscriberInterface
event classes.Testing Instructions
Test that extension installation works as before.
Joomla update also works as before.
Actual result BEFORE applying this Pull Request
Works
Expected result AFTER applying this Pull Request
Works
Link to documentations
Please select:
PR Type
Enhancement
Description
extension
andinstaller
plugins to useSubscriberInterface
event classes.AbstractJoomlaUpdateEvent
class and its concrete implementationsBeforeJoomlaUpdateEvent
andAfterJoomlaUpdateEvent
.SubscriberInterface
for various extension plugins and updated their methods to use event classes.Changes walkthrough 📝
9 files
UpdateModel.php
Use event classes for Joomla update process
administrator/components/com_joomlaupdate/src/Model/UpdateModel.php
BeforeJoomlaUpdateEvent
andAfterJoomlaUpdateEvent
instead of triggering events directly.CoreEventAware.php
Map Joomla update events to core events
libraries/src/Event/CoreEventAware.php
onJoomlaBeforeUpdate
andonJoomlaAfterUpdate
to the core eventmapping.
AbstractJoomlaUpdateEvent.php
Introduce abstract class for Joomla update events
libraries/src/Event/Extension/AbstractJoomlaUpdateEvent.php
AbstractJoomlaUpdateEvent
for Joomla updateevents.
AfterJoomlaUpdateEvent.php
Add AfterJoomlaUpdateEvent class
libraries/src/Event/Extension/AfterJoomlaUpdateEvent.php
AfterJoomlaUpdateEvent
class extendingAbstractJoomlaUpdateEvent
.BeforeJoomlaUpdateEvent.php
Add BeforeJoomlaUpdateEvent class
libraries/src/Event/Extension/BeforeJoomlaUpdateEvent.php
BeforeJoomlaUpdateEvent
class extendingAbstractJoomlaUpdateEvent
.Finder.php
Implement SubscriberInterface for Finder plugin
plugins/extension/finder/src/Extension/Finder.php
SubscriberInterface
for the Finder extension plugin.Joomla.php
Implement SubscriberInterface for Joomla plugin
plugins/extension/joomla/src/Extension/Joomla.php
SubscriberInterface
for the Joomla extension plugin.NamespaceMap.php
Implement SubscriberInterface for NamespaceMap plugin
plugins/extension/namespacemap/src/Extension/NamespaceMap.php
SubscriberInterface
for the NamespaceMap extension plugin.Override.php
Implement SubscriberInterface for Override plugin
plugins/installer/override/src/Extension/Override.php
SubscriberInterface
for the Override extension plugin.