User tests: Successful: Unsuccessful:
The event system in 4.0 makes use of the Framework's Event package. One of the features it supports is the concept of an event subscriber, which is essentially what JPlugin
subclasses are but with a different notion of how events are registered. This PR adds support for a plugin "properly" implementing Joomla\Event\SubscriberInterface
to explicitly define its event listeners. Plugins implementing this interface will not go through the legacy behavior of finding all public on*
methods to register as a listener since the purpose of this interface is to define a method that lists all of the subscribed events and the corresponding listeners.
Create a plugin implementing Joomla\Event\SubscriberInterface
and verify that the plugin's configured events are correctly registered to the dispatcher. With this interface implemented, only the listeners defined in the interface's getSubscribedEvents
method should be registered.
Note the additional implementation method for defining listeners for plugin events.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-05 16:55:20 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|