Add Psr\EventDispatcher\EventDispatcherInterface alias to core services

Created on 13 November 2023, about 1 year ago
Updated 8 May 2024, 8 months ago

Problem/Motivation

πŸ“Œ Enable service autowiring by adding interface aliases to core service definitions Fixed added service aliases to allow for autowiring services. There is a service alias @event_dispatcher for event dispatcher (Symfony\Contracts\EventDispatcher\EventDispatcherInterface). However, in order to allow autowiring services which typehint against Psr\EventDispatcher\EventDispatcherInterface, that interface should be added as an additional alias.

Steps to reproduce

Proposed resolution

Add Psr\EventDispatcher\EventDispatcherInterface: '@event_dispatcher' to core.services.yml.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡¨πŸ‡­Switzerland znerol

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