Argument 9 for DiscoveryInterfaceController should be ModuleHandlerInterface

Created on 23 November 2023, 12 months ago

Problem/Motivation

This is well known issue when we use hook_event_dispatcher module or webprofiler.
It causes a fatal error.
E.g.
TypeError: Drupal\acquia_contenthub_curation\Controller\DiscoveryInterfaceController::__construct(): Argument #9 ($module_handler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /docroot/modules/contrib/acquia_contenthub/modules/acquia_contenthub_curation/src/Controller/DiscoveryInterfaceController.php on line 147 in Drupal\acquia_contenthub_curation\Controller\DiscoveryInterfaceController->__construct() (line 111 of /docroot/modules/contrib/acquia_contenthub/modules/acquia_contenthub_curation/src/Controller/DiscoveryInterfaceController.php)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇵🇱Poland lamp5 Rzeszow

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

Comments & Activities

Production build 0.71.5 2024