Use autowiring for core modules and services

Created on 13 July 2022, over 2 years ago
Updated 10 December 2022, almost 2 years 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 each services.yml file set

services:
  _defaults:
    autowire: true

Remove as many explicit arguments sections as possible, as the container should be able to infer the correct service in many cases.

Remaining tasks

Postponed on 📌 Enable service autowiring by adding interface aliases to core service definitions Fixed , for reasons explained in #3049525-53: Enable service autowiring by adding interface aliases to core service definitions .

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

10.0

Component
Base 

Last updated about 2 hours 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

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