改名
This commit is contained in:
+6
-12
@@ -60,16 +60,6 @@ class Server extends Application
|
||||
private $baseServer;
|
||||
|
||||
|
||||
/**
|
||||
* @throws ConfigException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->initCore(Config::get('servers', true));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $configs
|
||||
* @return Http|Packet|Receive|WebSocket
|
||||
@@ -97,13 +87,17 @@ class Server extends Application
|
||||
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* @return void
|
||||
*
|
||||
* start server
|
||||
* @throws ConfigException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function start()
|
||||
{
|
||||
return $this->baseServer->start();
|
||||
$configs = Config::get('servers', true);
|
||||
$baseServer = $this->initCore($configs);
|
||||
$baseServer->start();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user