Update scheduler SchedulerEvent namespace dependencies

Created on 24 May 2024, 11 months ago

Problem/Motivation

After updating the dependent Scheduler module, it looks like they have refactored how their code is organised and have updated namespaces.

When running the lightweight scheduler-cron, this error is produced:

Argument #1 ($event) must be of type Drupal\scheduler\SchedulerEvent, Drupal\scheduler\Event\SchedulerEvent given

Steps to reproduce

  • Prepare nodes to be published on schedule
  • Run lightweight scheduler-cron
  • Observe error in description

Proposed resolution

Update dependent use statements to correspond with refactored scheduler module.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jonnyhocks

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