提交 7e27913f 编写于 作者: ModStart's avatar ModStart

develop

上级 19c8e38d
......@@ -58,7 +58,9 @@ class ModuleInstallCommand extends Command
ModStart::clearCache();
ModuleManager::callHook($module, 'hookInstalled');
if (method_exists(ModuleManager::class, 'callHook')) {
ModuleManager::callHook($module, 'hookInstalled');
}
$event = new ModuleInstalledEvent();
$event->name = $module;
......
......@@ -29,7 +29,9 @@ class ModuleUninstallCommand extends Command
}
}
ModuleManager::callHook($module, 'hookBeforeUninstall');
if (method_exists(ModuleManager::class, 'callHook')) {
ModuleManager::callHook($module, 'hookBeforeUninstall');
}
unset($installeds[$module]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册