Autowire core services that do not require explicit configuration

Created on 13 July 2022, almost 2 years ago
Updated 17 November 2023, 7 months ago

Problem/Motivation

Following 📌 Support _defaults key in service.yml files for public, tags and autowire settings Fixed and 📌 Enable service autowiring by adding interface aliases to core service definitions Fixed we are now in a place where we can use autowiring in core.

Steps to reproduce

Proposed resolution

In core.services.yml file set

services:
  _defaults:
    autowire: true

Remove as many explicit arguments sections as possible, as the container can infer the correct service in many cases.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Base  →

Last updated 1 minute ago

Created by

🇬🇧United Kingdom longwave UK

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.69.0 2024