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.
#2883680: Force all route filters and route enhancers to be non-lazy deprecated RouteEnhancerInterface
and RouteFilterInterface
.
@jonathan1055 pointed out in #2883680-108: Force all route filters and route enhancers to be non-lazy that the deprecation message says it's deprecated in 8.4.0, but it's really deprecated in 8.5.0.
So let's fix that.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2926412-2.patch | 2.11 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThanks for raising this issue.
I also noticed that there is an error in the Change Record. For the after example of the 'use' statement the class
Drupal\Core\Routing\Enhancer\EnhancerInterface
does not exist. I think it should beDrupal\Core\Routing\EnhancerInterface
which does exist and allows my 3rd-party tests to pass at 8.5. Same goes for the RouteFilterInterface example.I added this as a comment on the CR but it has not been noticed/actioned yet, so this issue seems a good place to raise it.
Comment #4
Wim LeersFixed! You should be able to edit change records too btw :)
Comment #6
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThanks for fixing the CR. Sorry I didn't know I could edit CRs that I had not created.
RTBC for the patch in #2 - this should be committed to 8.6 and 8.5, it is an important correction and a trivial change.
Jonathan
Comment #9
larowlanCommitted 2eaceaa and pushed to 8.6.x
Cherrypicked as 9e76e61 and pushed to 8.5.x
Thanks
Comment #11
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThank you Larowlan.