Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293129

Use autowiring for core modules and services

$
0
0

Problem/Motivation

Following #3021898: Support _defaults key in service.yml files for public, tags and autowire settings and #3049525: Enable service autowiring by adding interface aliases to core service definitions 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 #3049525: Enable service autowiring by adding interface aliases to core service definitions, 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


Viewing all articles
Browse latest Browse all 293129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>