This commit is contained in:
2021-04-25 16:21:18 +08:00
parent 05cd3dde9e
commit c8e46648d3
+30
View File
@@ -813,6 +813,36 @@ if (!function_exists('router')) {
}
if (!function_exists('isService')) {
/**
* @param string $name
* @return bool
*/
#[Pure] function isService(string $name): bool
{
return Snowflake::app()->has($name);
}
}
if (!function_exists('getService')) {
/**
* @param string $name
* @return mixed
* @throws Exception
*/
function getService(string $name): mixed
{
return Snowflake::app()->get($name);
}
}
if (!function_exists('jTraceEx')) {
/**