- Issue created by @cpigott
- Merge request !4Use ModuleHandlerInterface instead of ModuleHandler directly → (Open) created by Unnamed author
Type error when hook_event_dispatcher module is installed:
Uncaught PHP Exception TypeError: "Drupal\\viewer\\ViewerModule::__construct(): Argument #3 ($module_handler) must be of type Drupal\\viewer\\ModuleHandlerInterface, Drupal\\hook_event_dispatcher\\HookEventDispatcherModuleHandler given, called in /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259" at /var/www/drupal/web/modules/contrib/viewer/src/ViewerModule.php line 60
Install viewer & hook_event_dispatcher
Switch use of "ModuleHandler" in ViewerModule.php to "ModuleHandlerInterface". Seems to work fine.
Active
1.0
Code