This commit is contained in:
2020-10-30 11:04:04 +08:00
parent 68a243f9cf
commit b6c4c0e93f
2 changed files with 23 additions and 10 deletions
+16
View File
@@ -192,6 +192,22 @@ if (!function_exists('write')) {
}
}
if (!function_exists('fire')) {
/**
* @param string $event
* @param array $params
* @throws ComponentException
* @throws Exception
*/
function fire(string $event,array $params = [])
{
$logger = Snowflake::app()->getEvent();
$logger->trigger($event, $params);
}
}
if (!function_exists('instance_load')) {