Drupal 10: Class "Symfony\Component\EventDispatcher\Event" not found

Created on 1 September 2024, 4 months ago

Problem/Motivation

_Error_: Class "Symfony\Component\EventDispatcher\Event" not found in _include()_ (line _13_ of _/var/www/html/web/modules/contrib/commerce_wishlist/src/Event/WishlistEvent.php_).

Steps to reproduce

- Install module, enable `Show wishlist button` for `Add to cart form` on `Manage display` tab of product type
- Navigate to product page, add item to wishlist using `Add to Wishlist` button
- Check for error in recent log messages

Proposed resolution

Replace Symfony\Component\EventDispatcher\Event with Drupal\Component\EventDispatcher\Event, refactor EventDispatcher::dispatch() argument order

See  https://www.drupal.org/node/3159012 β†’

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Kopecek

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

Comments & Activities

Production build 0.71.5 2024