Closed (fixed)
Project:
Hook Event Dispatcher
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Feb 2024 at 14:36 UTC
Updated:
17 Apr 2024 at 05:09 UTC
Jump to comment: Most recent
The plugin.manager.hook_event is dependent on module_handler service, which is already decorated by our own implementation. This imposes two problems, the first is circular dependencies as our module handler is dependent on plugin.manager.hook_event, and the second is the plugin manager does not really require the module handler to work.
There are two options:
default_plugin_manager so it does not depend on the module handler, but needs to duplicate a bunch of methods from the default plugin manager.default_plugin_manager constructor.Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
el7cosmosComment #5
sapna_123 commentedAfter this fix, getting this error
Uncaught PHP Exception TypeError: "Drupal\\hook_event_dispatcher\\HookEventPluginManager::__construct(): Argument #3 ($moduleList) must be of type array, Drupal\\hook_event_dispatcher\\HookEventDispatcherModuleHandler given.
Please check
Comment #6
gaurav_manerkar commented@sapna_123 can you share steps to reproduce?
Comment #7
cruno commentedWe're getting the same issue as #5 when running drush config:import in image builds.
Comment #8
gaurav_manerkar commentedNeed to fix the error.
Comment #9
gaurav_manerkar commentedFor me after running
drush crthe error goes away.@sapna_123 @cruno can you try flushing cache?
Comment #10
gaurav_manerkar commentedComment #11
gaurav_manerkar commentedI am facing the error after upgrading module from
4.0.0-rc1to4.0.1in CD pipeline.Looks like service cache related
Comment #12
gaurav_manerkar commentedAfter investigation, i found that this error is related to container cache and not related to this module.
For pipelines:
https://www.drupal.org/project/drupal/issues/2918906
https://www.drupal.org/project/drupal/issues/3153335
$settings['deployment_identifier'] = 'something different';- it should mark container cache as invalid.On local setup, run
drush crfirst to rebuild caches. That should solve the problem