改名
This commit is contained in:
@@ -23,6 +23,7 @@ use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Snowflake;
|
||||
use HttpServer\Http\Context;
|
||||
use Snowflake\Core\ArrayAccess;
|
||||
use Swoole\WebSocket\Server;
|
||||
|
||||
if (!function_exists('make')) {
|
||||
|
||||
@@ -81,6 +82,22 @@ if (!function_exists('annotation')) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!function_exists('swoole')) {
|
||||
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
function swoole(): Swoole\Server|Server
|
||||
{
|
||||
return Snowflake::getWebSocket();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('recursive_directory')) {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user