mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 12:07:28 +08:00
feat: add plugin upload functionality and optimize plugin logic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user