RFC Feature PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
12 May 2024

Summary of Changes

A replacement for deprecated registerListeners() (see #43395)

Current limitation of SubscriberInterface is that it does not allow to return listeners depend from runtime.
It has own pros and cons. However in CMS it is sometimes need to have a diffrenet listeners depend from the Application type.

I think DynamicSubscriberInterface will be a good for it.
The difference from SubscriberInterface is that it uses non-static method, which allows subscriber to configure listeners depending on runtime. Additionally, it supports callables.

Testing Instructions

Code review.
Check GuidedTours and ScheduleRunner plugins still works.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

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: TBD
  • No documentation changes for manual.joomla.org needed

References:

8a98dcc 12 May 2024 avatar Fedik phpcs
avatar Fedik Fedik - open - 12 May 2024
avatar Fedik Fedik - change - 12 May 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2024
Category Libraries Front End Plugins
avatar Fedik Fedik - change - 12 May 2024
Labels Added: RFC PR-5.2-dev
avatar Fedik Fedik - change - 12 May 2024
The description was changed
avatar Fedik Fedik - edited - 12 May 2024
avatar Fedik Fedik - change - 10 Jun 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-06-10 09:45:25
Closed_By Fedik
Labels Added: Feature
avatar Fedik Fedik - close - 10 Jun 2024

Add a Comment

Login with GitHub to post a comment