SchedulerManager should take an EventDispatcherInterface object, not ContainerAwareEventDispatcher

Created on 2 April 2024, 9 months ago
Updated 27 August 2024, 4 months ago

Problem/Motivation

In Drupal 10, the @event_dispatcher service has changed classes. On a new site install on Drupal 10.3.x from configuration that enables scheduler, I get the error:

[error] TypeError: Drupal\scheduler\SchedulerManager::__construct(): Argument #6 ($eventDispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given in Drupal\scheduler\SchedulerManager->__construct()

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gcb

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024