feat: add plugin upload functionality and optimize plugin logic

This commit is contained in:
xboard
2025-01-26 03:58:28 +08:00
parent 0141c68167
commit c370b297d2
11 changed files with 224 additions and 20 deletions
+4 -3
View File
@@ -80,11 +80,12 @@ class HookManager
* 移除钩子监听器
*
* @param string $hook 钩子名称
* @param callable|null $callback 回调函数
* @return void
*/
public static function remove(string $hook): void
public static function remove(string $hook, ?callable $callback = null): void
{
Eventy::removeAction($hook);
Eventy::removeFilter($hook);
Eventy::removeAction($hook, $callback);
Eventy::removeFilter($hook, $callback);
}
}