Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The REQUEST
event handler method is named onRouteMatch
which is very confusing.
Proposed resolution
Rename it to onRequest
.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#22 | 2575841-22.patch | 1.89 KB | MerryHamster |
#18 | use_proper_method_name-2575841-18.patch | 1.89 KB | Utkarsh_Mishra |
Comments
Comment #2
znerol CreditAttribution: znerol commentedComment #3
nicrodgersPatch #2 fails to apply to the latest 8.0x-dev in git, so I've re-rolled it for the current version.
Comment #4
dawehner+1
Comment #6
nicrodgerspatch #3 still applies to 8.0.x, and although #5 says it failed testing, I can't see any links to a failed test report? What am I missing?
Comment #7
nicrodgerstriggering another testbot review.
Comment #8
nicrodgersTests passed, so the previous failure must have been a hiccup with the test suite. Marking RTBC again as per #4.
Comment #10
skyredwangComment #12
markdorisonUpdated against 8.1.x.
Comment #17
borisson_This needs a reroll, removing the quickfix tags, as this had been ~2.5 years, that doesn't seem to qualify as quick. I'm not sure if we can still do this, for BC reasons.
Comment #18
Utkarsh_Mishra CreditAttribution: Utkarsh_Mishra at OpenSense Labs for DrupalFit commentedUpdated against 8.5.x.
Comment #19
Utkarsh_Mishra CreditAttribution: Utkarsh_Mishra at OpenSense Labs for DrupalFit commentedComment #20
savkaviktor16@gmail.com CreditAttribution: savkaviktor16@gmail.com at Skilld commentedComment #21
MerryHamster CreditAttribution: MerryHamster at Skilld commentedComment #22
MerryHamster CreditAttribution: MerryHamster at Skilld commentedHere is an only reroll for 8.6.x
Comment #23
dawehnerThank you
Comment #24
alexpotthttps://www.drupal.org/core/d8-bc-policy#paramconverters are not part of the API so this is fine to change. But let's only change it in 8.6.x because nothing is actually broken.
Committed 766c804 and pushed to 8.6.x. Thanks!
Comment #26
Wim LeersAs the maintainer of this component, I wish I'd been given the opportunity to review this patch. It wasn't filed against the right component, hence I did not see it.
Fortunately, it's a trivial change :)
Note that this was named
onRouteMatch()
on purpose: it runs for theKernelEvents::REQUEST
event, but runs pretty late: after routing. Hence its name.That is in fact the very central principle about Dynamic Page Cache: that it runs immediately after routing. As its docs say:
Nonetheless, +1 for this change. Consistency FTW!
Comment #27
Wim Leers