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
#2403307: RPC endpoints for user authentication: log in, check login status, log out added this service. This service only needs the serializer formats container parameter. It doesn't need the serializer service.
Not only is it unused, it also makes route rebuilds much more expensive, because to use the serializer
service, all normalizer services must also be instantiated!
Proposed resolution
Stop injecting the serializer service.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | serialization_remove_unnecessary_injected_service-2841542-2.patch | 1.91 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
Wim LeersComment #4
hampercm CreditAttribution: hampercm at Acquia commentedNice catch! Patch looks good to me.
Comment #5
damiankloip CreditAttribution: damiankloip at Acquia commentedThis gets the +1 from me too! Nice catch.
Comment #7
hampercm CreditAttribution: hampercm at Acquia commentedRe-queueing for testbot
Comment #8
alexpottCommitted f182e9d and pushed to 8.3.x. Thanks!
Unused use fixed on commit.