改名
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
namespace Server;
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Route\Node;
|
||||
use HttpServer\Route\Router;
|
||||
use ReflectionException;
|
||||
use Snowflake\Event;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Snowflake;
|
||||
use Swoole\Error;
|
||||
@@ -65,7 +63,7 @@ class HTTPServerListener extends Abstracts\Server
|
||||
if (!(static::$_http instanceof Port)) {
|
||||
trigger_error('Port is ' . $host . '::' . $port . ' must is tcp listener type.');
|
||||
}
|
||||
static::$_http->set($settings['settings'] ?? []);
|
||||
static::$_http->set(array_merge($settings['settings'] ?? [], ['enable_unsafe_event' => false]));
|
||||
static::$_http->on('request', [$reflect, 'onRequest']);
|
||||
static::$_http->on('connect', [$reflect, 'onConnect']);
|
||||
static::$_http->on('disconnect', [$reflect, 'onDisconnect']);
|
||||
|
||||
Reference in New Issue
Block a user