Closed (fixed)
Project:
Drupal core
Version:
10.2.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2023 at 16:45 UTC
Updated:
5 Feb 2024 at 16:34 UTC
Jump to comment: Most recent
The context.repository service uses a custom compiler pass in order to get all services tagged as context_provider passed as a constructor argument. This can be achieved in the same way by utilizing the service_id_collector tag and does not need a custom compiler pass.
-
Use the service_id_collector pattern for the context.repository service and deprecate ContextProvidersPass.
-
-
-
-
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tstoecklerNot sure if I'm missing anything and the compiler pass is in fact needed, but just stumbled upon this and was a bit confused. Will open an MR, let's see if it's green.
Comment #4
tstoecklerComment #5
smustgrave commentedTests appear green.
Will need a CR.
Comment #6
tstoecklerFair enough, although I wasn't sure what to write in the change notice, as I can't fathom any reason why someone would be using that.
Comment #7
smustgrave commentedThanks!
Comment #8
longwaveCompiler passes are considered internal, I don't think this warrants a change record as I also don't see how anyone else would be extending or reusing it, so I've deleted the change record.
Committed and pushed 0a13623646 to 11.x and d0b7905944 to 10.2.x. Thanks!
Comment #11
tstoecklerAwesome, thanks! Opened #3396445: [11.x] Remove deprecated ContextProvidersPass for the actual removal.
Comment #13
quietone commentedThis issue added a deprecation with a link to a change record that does not exist.
I added a draft change record so the docbloc can be updated. It is not complete so I am tagging for change record updates.
Comment #14
darvanenTook a stab at the change record - are there any situations in which someone might use that class elsewhere, extend it, or override it? I can't think how that would be useful let alone possible.
Also shouldn't the 11.x commit remove the class?
Comment #15
tstoecklerI was quite confused by #13, but then re-read the issue and this is what happened:
So maybe you three need to hop on a call and discuss what does or does not warrant a CR ;-)
When there's consensus on whether or not one is needed, the link can either be dropped or updated. I don't feel strongly either way (as hinted at in #6 I could certainly live without one, but I don't really care).
Comment #16
tstoecklerAlso Re #14:
Comment #17
longwaveAs we need to link the deprecation somewhere we do need a change record, that was my mistake.
Comment #19
longwaveOpened a new MR with the change record link. Apologies for wasting everyone's time here.
Comment #20
smustgrave commentedCR link seems good
Comment #21
longwaveCommitted and pushed cc8a853306 to 11.x and ce3da88a84 to 10.2.x.