Use autoconfigure more in core

Created on 24 May 2024, about 1 year ago
Updated 26 June 2024, about 1 year ago

Problem/Motivation

Autoconfigure (https://symfony.com/doc/current/service_container.html#services-autoconf...) allows to skip a lot of boilerplate with compiler passes etc. like automatically adding a service tag if a service implements a particular interface.

However, it only works if the individual services.yml specifies autoconfigure: true, so for existing compiler passes, can cause bc issues for modules that don't do this.

Can we somehow deprecate not having autoconfigure: true in services.yml? Or change Symfony's default to true while allowing people to explicitly disable it? Not sure, but opening this issue to discuss.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.4 ✨

Component
BaseΒ  β†’

Last updated 44 minutes ago

Created by

πŸ‡¬πŸ‡§United Kingdom catch

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