This commit is contained in:
2021-07-21 11:25:31 +08:00
parent 3b05c856ef
commit 8f6079b040
9 changed files with 201 additions and 112 deletions
+3 -22
View File
@@ -553,37 +553,18 @@ if (!function_exists('storage')) {
}
if (!function_exists('listen')) {
/**
* @param $name
* @param $callback
* @param $params
* @param $isAppend
* @throws Exception
* @throws Exception
*/
function listen($name, $callback, $params = [], $isAppend = true)
{
Event::on($name, $callback, $params, $isAppend);
}
}
if (!function_exists('event')) {
/**
* @param $name
* @param $callback
* @param $params
* @param $isAppend
* @param array $params
* @param bool $isAppend
* @throws Exception
* @throws Exception
*/
function event($name, $callback, $params = [], $isAppend = true)
function event($name, $callback, array $params = [], bool $isAppend = true)
{
Event::on($name, $callback, $params, $isAppend);
}