This commit is contained in:
2021-03-23 10:30:14 +08:00
parent c6e8871b9c
commit 14bae86b66
3 changed files with 41 additions and 32 deletions
+5 -3
View File
@@ -9,6 +9,7 @@ use HttpServer\Service\Receive;
use HttpServer\Service\Websocket;
use Snowflake\Abstracts\Component;
use Snowflake\Abstracts\Config;
use Snowflake\Exception\ConfigException;
/**
@@ -19,9 +20,10 @@ class Service extends Component
{
/**
* @throws \Snowflake\Exception\ConfigException
*/
/**
* @param Packet|Websocket|Receive|Http|null $server
* @throws ConfigException
*/
public function instance(Packet|Websocket|Receive|null|Http $server): void
{
$services = Config::get('rpc.service', false, []);