Symfony Event class deprecated, EventDispatcher::dispatch() argument order changed

Created on 2 February 2024, 11 months ago

Problem/Motivation

The use of Symfony\Component\EventDispatcher\Event is deprecated in Drupal 10.

Steps to reproduce

Subscribe to raw data event like:

 public static function getSubscribedEvents() : array {

    $events['external_entity.map_raw_data'][] = ['onExternalEntityMapData'];

    return $events;
  }

Proposed resolution

Update module as described in: https://www.drupal.org/node/3159012

Remaining tasks

Testing on versions prior to Drupal 10. Guess it will work as we have many other events/dispatches in Drupal 9.4

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Closed: duplicate

Component

Code

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

Comments & Activities

Production build 0.71.5 2024