Convert StreamWrapperManager to use a service locator

Created on 14 January 2024, 6 months ago
Updated 6 February 2024, 5 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

Fixed

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 10 hours 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.69.0 2024