modify plugin name

This commit is contained in:
2022-06-20 17:25:01 +08:00
parent 06db2fee3a
commit 005b33c9d6
6 changed files with 237 additions and 9 deletions
+23 -2
View File
@@ -14,8 +14,29 @@ interface ServerInterface
/**
* @param string $name
* @return Server|\Swoole\Coroutine\Server|\Swoole\Coroutine\Http\Server
* @return Server|\Swoole\Coroutine\Server|\Swoole\Coroutine\Http\Server|null
*/
public function getServer(string $name): Server|\Swoole\Coroutine\Server|\Swoole\Coroutine\Http\Server;
public function getServer(string $name): Server|\Swoole\Coroutine\Server|\Swoole\Coroutine\Http\Server|null;
/**
* @param array $service
* @param int $daemon
* @return void
*/
public function initCoreServers(array $service, int $daemon = 0): void;
/**
* @param Config $config
* @return void
*/
public function addListener(Config $config): void;
/**
* @return void
*/
public function start(): void;
}