Module: fix multi-instance hook registrations
This fixes the problem that registering the same Hook multiple times with the provideHook shortcut and no class name kept only one implementation
This commit is contained in:
parent
b005df68a2
commit
b63d2ad291
|
@ -1289,7 +1289,7 @@ class Module
|
|||
$class = $implementation;
|
||||
}
|
||||
|
||||
Hook::register($name, $implementation, $class);
|
||||
Hook::register($name, $class, $class);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue