Use correct base class for event

Created on 24 October 2023, 8 months ago
Updated 25 October 2023, 8 months ago

Problem/Motivation

Running on D10 an exception occurs:

Fatal error: Uncaught Error: Class "Symfony\Component\EventDispatcher\Event" not found in /var/www/html/web/modules/contrib/multi_domain_login/src/Event/UserLoginEvent.php:11
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/var/www/html/w...')
#2 /var/www/html/web/modules/contrib/multi_domain_login/src/EventSubscriber/UserLoginSubscriber.php(64): Composer\Autoload\ClassLoader->loadClass('Drupal\\multi_do...')
#3 /var/www/html/web/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php(37): Drupal\multi_domain_login\EventSubscriber\UserLoginSubscriber::getSubscribedEvents()
#4

Steps to reproduce

None

Proposed resolution

Use the correct base class.

Remaining tasks

Fix code

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium kriboogh

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

Comments & Activities

Production build 0.69.0 2024