Needs work
Project:
Drupal core
Version:
main
Component:
routing system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2022 at 04:08 UTC
Updated:
29 Jun 2025 at 06:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
_shyRenamed class
RedirectLeadingSlashesSubscribertoRedirectSuccessiveSlashesSubscriberComment #3
_shyComment #4
longwavePatch already has the renamed file, it is missing the rename of the old filename to the new one.
Comment #5
_shyOh really, I missed this, thanks)
Comment #6
_shyComment #7
ravi.shankar commentedAdded a new patch as #7 is not getting applied.
Comment #8
longwaveI guess we should rename the service at the same time.
Event subscribers are not considered API so to me this is safe to do in 10.0.x without providing backward compatibility.
Comment #9
_shyRenamed service as well.
Comment #10
_shyComment #11
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
This will need a change record as the service may in use by others right?
Shouldn't this be deprecated first before replacing?
Comment #12
longwaveI could find no uses of the class or service in contrib, and as per the link in #8 event subscribers are not considered API - extending them usually doesn't make much sense, so I don't think we need to spend the effort deprecating this. We can however write a short change notice just in case, that is a simple task that keeps a record of what has happened here.
Comment #13
_shyAdded change notice, please, take a look.
Comment #14
longwaveThanks!
Comment #15
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #17
_shyCreated MR and all tests are green.
Also, changed the target branch.
Comment #18
_shyComment #19
smustgrave commentedReroll to MR seems fine.
Comment #20
xjmA service machine name is public API; therefore, a CR alone is not sufficient for that change. (The handbook page refers to the class implementation of the event subscriber, which is indeed internal API.) We should deprecate the old service for removal in D11.We should also provide best-effort BC and deprecation for the class name, which is internal API. Thanks!
Comment #21
xjmMy kneejerk about the core service definition machine names might be wrong here; discussing with the other release managers. Hold on changes for now.
Comment #22
quietone commentedChanging to the DX special tag defined on Issue tags -- special tags.
Comment #24
xjmI am so sorry that this fell off my radar! I was waiting on feedback from another release manager but then lost track of the issue somehow. Basically everything I said was wrong; the CR is plenty for this because it's an event subscriber, not a normal service. Therefore, even changing the machine name of the service is fine. Per @catch:
Obviously, the merge request will need to be updated after all this time, but once it's updated and reviewed, the RTBC should be restored if appropriate, without any deprecation or BC layer or anything. Apologies again!
Comment #25
xjmSaving credits.