Problem/Motivation

Some modules (hook_event_dispatcher is one example) override the ModuleHandler service, ECC breaks when this happens because it expects the class \Drupal\Core\Extension\ModuleHandler instead of the interface.

Steps to reproduce

Use ECC in combination with the latest version of hook_event_dispatcher (or override the ModuleHandler service yourself).

Proposed resolution

Expect the interface as an argument instead of the class.

Remaining tasks

Create a patch.

CommentFileSizeAuthor
#2 3307527-2.patch3.02 KBrandalv

Comments

RandalV created an issue. See original summary.

randalv’s picture

StatusFileSize
new3.02 KB

Patch attached.

svenryen’s picture

Status: Active » Needs review

Thanks @RandalV! I wasn't aware of hook_event_dispatcher. I'll have a look at that module and test.

  • svenryen committed 59b0756 on 8.x-1.x
    Issue #3307527 by RandalV, svenryen: ECC should allow other modules to...
svenryen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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