Class BaseGenerator not found in ...

Created on 28 February 2022, about 3 years ago
Updated 18 May 2023, almost 2 years ago

Problem/Motivation

During updates on one of our sites, updating this module to 3.0.1 caused some issues in combination with chi-tek/drupal-code-generator version 2.5.1
We're getting the following error:
Error: Class 'DrupalCodeGenerator\Command\BaseGenerator' not found in /web/modules/contrib/hook_event_dispatcher/src/Generators/LegacyEventGenerator.php on line 14 #0 phar:///usr/local/bin/drush/vendor/composer/ClassLoader.php(444): include()

Steps to reproduce

Install version 3.0.1 in combination with chi-tek/drupal-code-generator 2.5.1

Proposed resolution

- Remove deprecated LegacyEventGenerator or at least make it compatible with all supported versions.
- Possibly restrict the drupal-code-generator version in composer.json?

Remaining tasks

Create patch

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇪Belgium RandalV

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024