改名
This commit is contained in:
@@ -37,6 +37,7 @@ class Http extends Server
|
|||||||
*/
|
*/
|
||||||
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
||||||
{
|
{
|
||||||
|
$application->set($host . ':' . $port, $this);
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
parent::__construct($host, $port, $mode, $sock_type);
|
parent::__construct($host, $port, $mode, $sock_type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ abstract class Service extends Server
|
|||||||
*/
|
*/
|
||||||
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
||||||
{
|
{
|
||||||
|
$application->set($host . ':' . $port, $this);
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
parent::__construct($host, $port, $mode, $sock_type);
|
parent::__construct($host, $port, $mode, $sock_type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ class WebSocket extends Server
|
|||||||
*/
|
*/
|
||||||
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
public function __construct($application, $host, $port = null, $mode = null, $sock_type = null)
|
||||||
{
|
{
|
||||||
|
$application->set($host . ':' . $port, $this);
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
parent::__construct($host, $port, $mode, $sock_type);
|
parent::__construct($host, $port, $mode, $sock_type);
|
||||||
}
|
}
|
||||||
@@ -67,10 +68,7 @@ class WebSocket extends Server
|
|||||||
{
|
{
|
||||||
parent::set($settings);
|
parent::set($settings);
|
||||||
|
|
||||||
$application = Snowflake::get();
|
ServerManager::set($this, $settings, $this->application, $events, $config);
|
||||||
$application->set(WebSocket::class, $this);
|
|
||||||
|
|
||||||
ServerManager::set($this, $settings, $application, $events, $config);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user