改名
This commit is contained in:
@@ -18,6 +18,7 @@ use Swoole\Http\Request;
|
||||
use Swoole\Http\Response;
|
||||
use Exception;
|
||||
use Swoole\Http\Server;
|
||||
use Swoole\Process\Pool;
|
||||
|
||||
class Http extends Server
|
||||
{
|
||||
@@ -43,15 +44,18 @@ class Http extends Server
|
||||
|
||||
/**
|
||||
* @param array $settings
|
||||
* @param null $pool
|
||||
* @param array $events
|
||||
* @param array $config
|
||||
* @return mixed|void
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function set(array $settings, $events = [], $config = [])
|
||||
public function set(array $settings, $pool = null, $events = [], $config = [])
|
||||
{
|
||||
parent::set($settings);
|
||||
Snowflake::get()->set(Pool::class, $pool);
|
||||
ServerManager::set($this, $settings, $this->application, $events, $config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user