[Symfony 5] Symfony/Component/EventDispatcher/Event is deprecated in Symfony 4.3 use Symfony/Contracts/EventDispatcher/Event instead

Created on 16 May 2019, about 5 years ago
Updated 14 April 2023, about 1 year ago

Problem/Motivation

Symfony/Component/EventDispatcher/Event is deprecated in Symfony 4.3 use Symfony/Contracts/EventDispatcher/Event instead

Proposed resolution

Create a new Drupal\Component\EventDispatcher\Event class so that contrib/custom/core core can extend it. When Drupal 10 upgrades to Symfony 5, we can change the inheritance of that class to the one from Symfony Contracts, but contrib and custom code won't need to update since they'll only be referencing the Drupal version directly.

Remaining tasks

Because the deprecation is from Symfony, and Symfony itself is still using the deprecated event class, it is either hard or impossible to actually remove the deprecation message suppression.

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

9.1

Component
BaseΒ  β†’

Last updated about 8 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mikelutz Michigan, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
Production build 0.69.0 2024