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
-
RegisterAuthenticationPass
does not use theservice_collector
concept because someone was lazy to convert it. -
There doesn't appear to be a good reason for why it requires a full container to operate. It's reasonable to expect that there are only a handful of authentication providers.
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff.txt | 668 bytes | sun |
#10 | authentication-2250243-10.patch | 4.78 KB | sun |
#6 | interdiff.txt | 1.27 KB | dawehner |
#6 | authentication-2250243-5.patch | 4.74 KB | dawehner |
#4 | interdiff.txt | 1.1 KB | dawehner |
Comments
Comment #1
dawehner... In fact we just store the service ID to not have to figure out which authentication manager applies to which route at runtime. I would love to extend #2213319: Create a single Container CompilerPass to collect + add handlers to consumer service definitions to support service IDs as well.
Comment #2
dawehnerComment #4
dawehnerThis time it should actually work.
Comment #6
dawehnerFixed the failure.
Comment #8
tim.plunkettA welcome improvement.
Comment #9
chx CreditAttribution: chx commentedthis shouldn't hold the commit up but
that just rubs me the wrong way. Is there any reason not to put that in a comment and instead run a strlen every time this is ran? I know microoptimization and all but still, this is ridiculous (and if I am not mistaken this runs on every request). Do we expect that the length of the string
authentication.
to change any time soon?Comment #10
sunAgreed, replaced accordingly.
Comment #11
dawehner+1 for this optimization. This runs at least on potentially every request, so its somehow worth.
Comment #12
alexpottCommitted a704796 and pushed to 8.0.x. Thanks!