改名
This commit is contained in:
@@ -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')) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user