This commit is contained in:
2021-03-31 18:19:45 +08:00
parent 92b782b596
commit 62c4f995b9
+17
View File
@@ -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')) {