Add BC layer for contrib modules using ContainerAwareEventDispatcher as a typehint (BC fix for #2909185)

Created on 6 May 2024, 7 months ago
Updated 21 June 2024, 5 months ago

Problem/Motivation

With πŸ“Œ Replace ContainerAwareEventDispatcher with Symfony EventDispatcher Fixed being committed to 10.3, any module that implements the event dispatcher will break. This is because the standard practice for returning the dispatcher service requires ContainerAwareEventDispatcher to be returned, which has been moved to the EventDispatcher.

Steps to reproduce

Enable and try to use any module using an event dispatcher. IE: search_api_solr, acquia_connector, views_json_source, etc

Proposed resolution

Add a BC layer that aliases ContainerAwareEventDispatcher to EventDispatcherInterface so typehints in contrib and custom continue to work.

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
BaseΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

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