This commit is contained in:
2023-08-11 00:12:33 +08:00
parent 69473a349e
commit 2c21e5c2fe
5 changed files with 109 additions and 91 deletions
+16
View File
@@ -662,6 +662,22 @@ if (!function_exists('on')) {
}
if (!function_exists('off')) {
/**
* @param $name
* @param $callback
* @throws
*/
function off($name, $callback): void
{
$pro = di(EventProvider::class);
$pro->off($name, $callback);
}
}
if (!function_exists('process_name_set')) {