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.