Skip to content

Commit

Permalink
develop
Browse files Browse the repository at this point in the history
  • Loading branch information
modstart committed Dec 13, 2021
1 parent 19c8e38 commit 7e27913
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public function handle()

ModStart::clearCache();

ModuleManager::callHook($module, 'hookInstalled');
if (method_exists(ModuleManager::class, 'callHook')) {
ModuleManager::callHook($module, 'hookInstalled');
}

$event = new ModuleInstalledEvent();
$event->name = $module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public function handle()
}
}

ModuleManager::callHook($module, 'hookBeforeUninstall');
if (method_exists(ModuleManager::class, 'callHook')) {
ModuleManager::callHook($module, 'hookBeforeUninstall');
}

unset($installeds[$module]);

Expand Down

0 comments on commit 7e27913

Please sign in to comment.