Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit c1dfb0f

Browse files
committed
Updated to 1.0.6 version
1 parent e6fbcb4 commit c1dfb0f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Module.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ private static function _add($module, $path) {
187187

188188
$that->_addResources();
189189

190-
Hook::doAction('module-load');
190+
$Hook = Hook::getInstance(App::$id);
191+
192+
$Hook->doAction('module-load');
191193

192194
if (in_array($action, self::$hooks)) {
193195

@@ -594,7 +596,9 @@ private function _addResources() {
594596

595597
if (isset($module['hooks'])) {
596598

597-
Hook::addActions($module['hooks']);
599+
$Hook = Hook::getInstance(App::$id);
600+
601+
$Hook->addActions($module['hooks']);
598602
}
599603

600604
if (class_exists($Router = 'Josantonius\Router\Router')) {

0 commit comments

Comments
 (0)