Problem/Motivation

After updating the hook_event_dispatcher module to version 3.3.1, a fatal error happens.

https://www.drupal.org/project/hook_event_dispatcher/issues/3277301 for some background of the updates done in hook_event_dispatcher module.

Proposed resolution

Use the ModuleHandlerInterface instead of the ModuleHandler concrete implementation, because other modules might decorate this class and it would lead to some fatal error.

Comments

nmillin created an issue. See original summary.

nmillin’s picture

StatusFileSize
new1.52 KB

Patch attached that mirrors at what https://www.drupal.org/project/facets/issues/3308343 did.

mark_fullmer’s picture

Assigned: Unassigned » mark_fullmer
Status: Active » Reviewed & tested by the community

Thanks for the contribution! This makes good sense.

  • mark_fullmer committed 07467f3 on 8.x-3.x
    Issue #3321297 by nmillin, mark_fullmer: Use the ModuleHandlerInterface...
mark_fullmer’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.