Make event subscribers private by default

Created on 21 March 2024, 9 months ago

Problem/Motivation

In Symfony all services are private by default, but in Drupal all services are still public. Event subscribers are almost always only injected into the event dispatcher and not used or accessed from anywhere else. To make the public surface of the container smaller, event subscriber services could be private by default.

Steps to reproduce

Proposed resolution

Automatically tag all (or most?) event subscriber services as private.

Remaining tasks

Figure out what to do about the services that are publically accessed.

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 13 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

Production build 0.71.5 2024