Convert StreamWrapperManager to use a service locator

Created on 14 January 2024, 11 months ago

Problem/Motivation

In 📌 Fork Symfony's ContainerAwareTrait and ContainerAwareInterface into core Needs work we are trying to reduce the use of ContainerAwareTrait as Symfony has deprecated it.

StreamWrapperManager is container aware because it needs to retrieve stream wrapper services by ID.

Instead of injecting the entire container we can inject a service locator that only knows about stream wrapper services.

Steps to reproduce

Proposed resolution

Inject a service locator from RegisterStreamWrappersPass.

Convert StreamWrapperManager to accept a service locator instead of being fully container aware.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
Base 

Last updated 2 days ago

Created by

🇬🇧United Kingdom longwave UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024