Inject services into LoggerChannelFactory

Created on 22 January 2024, 11 months ago
Updated 5 April 2024, 9 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.

LoggerChannelFactory retrieves the request stack and current user services from the container. There seems to be no reason for this, they could just be injected in the constructor in the normal way.

Steps to reproduce

Proposed resolution

Inject the services directly.

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

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