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

Commit b6cb835

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Module.php

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

188188
$that->_addResources();
189189

190-
$Hook = Hook::getInstance(App::$id);
190+
Hook::getInstance(App::$id);
191191

192-
$Hook->doAction('module-load');
192+
Hook::doAction('module-load');
193193

194194
if (in_array($action, self::$hooks)) {
195195

@@ -596,9 +596,9 @@ private function _addResources() {
596596

597597
if (isset($module['hooks'])) {
598598

599-
$Hook = Hook::getInstance(App::$id);
599+
Hook::getInstance(App::$id);
600600

601-
$Hook->addActions($module['hooks']);
601+
Hook::addActions($module['hooks']);
602602
}
603603

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

0 commit comments

Comments
 (0)