Convert QueueFactory to use a service locator

Created on 22 January 2024, about 1 year ago
Updated 15 July 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.

QueueFactory is container aware because it needs to retrieve queue backend services by name. This could use a service locator instead.

However, there is only one queue backend service in core (queue.database) and there is no base class or interface to identify queue backends.

Steps to reproduce

Proposed resolution

Add an interface to queue backend services.

Add a service locator to QueueFactory.

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Cron 

Last updated 1 day ago

No maintainer
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