Error: Class "Symfony\Component\EventDispatcher\Event" not found in include()

Created on 19 November 2023, 8 months ago
Updated 15 January 2024, 6 months ago

Problem/Motivation

Error: Class "Symfony\Component\EventDispatcher\Event" not found in include() (line 13 of modules/contrib/commerce_stripe_klarna/src/Event/CommerceStripeKlarnaEvent.php).

Steps to reproduce

On Drupal 10 create a commerce order and use stripe klarna

Proposed resolution

Replace Symfony\Component\EventDispatcher\Event with Drupal\Component\EventDispatcher\Event

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

Remaining tasks

There was another Bug in StripeKlarna.php i fixed with my patch.
Symfony has removed the deprecated create() methods.

Proposed resolution
Use `__construct()` instead of the removed `::create()` methods.

๐Ÿ› Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany Fulgrim

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024