Config storage dependency can cause service container circular reference

Created on 15 January 2023, almost 2 years ago
Updated 24 April 2024, 7 months ago

Problem/Motivation

If config requires a cache service and a cache service requires a logger, a circular dependency can be created given that logger.error_log requires config.

Steps to reproduce

Try to install filecache module and error_log module.

Proposed resolution

We could explore allowing configuration without injecting @config.factory service, e.g. by using a ServiceProvider. See also πŸ› Dependency on config storage causes circular reference in service container Needs review for the equivalent issue on core syslog module.

Remaining tasks

Research and development.

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mfb San Francisco

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024