Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2026 at 17:01 UTC
Updated:
12 Jul 2026 at 15:49 UTC
Jump to comment: Most recent
#3414627: Convert StreamWrapperManager to use a service locator added a service locator for stream wrappers, but metadata about the stream wrappers was still injected into StreamWrapperManager from a custom compiler pass.
However, that metadata is available from the service locator itself, so we can remove the custom compiler pass entirely.
Remove the custom compiler pass.
Refactor the class so stream wrapper metadata is retrieved from the service locator wrapper.
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
longwaveComment #4
dcam commentedI've read through the changes a few times and can't find anything obviously wrong with it. The only curiosity is that apparently
addStreamWrapper()was public, but not in the interface. I don't know if there's some history there that I'm not aware of. Anyway, I didn't find any additional usages ofRegisterStreamWrappersPassorStreamWrapperManager::addStreamWrapper(). File uploads continued to work on my local after applying the MR, as I expected. I think this is good to go.Comment #5
alexpottI search contrib and could find not released modules using addStreamWrapper in runtime code and the rest of this is very much internals so I think this is fine to change in a minor release.
Committed and pushed a4cda8572f3 to main and 1ee7cb4efe5 to 11.x. Thanks!