From 58e405cccd25b1b24883a5d06b7fec714b85e63b Mon Sep 17 00:00:00 2001 From: sunxyw Date: Tue, 5 Apr 2022 01:45:18 +0800 Subject: [PATCH] Revert "add basic container usage example" This reverts commit 86e379c6bd8eb829a947bce463ff68c9de2d4200. --- src/Module/Example/Hello.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Module/Example/Hello.php b/src/Module/Example/Hello.php index 6e7a2fb2..89511251 100644 --- a/src/Module/Example/Hello.php +++ b/src/Module/Example/Hello.php @@ -12,15 +12,12 @@ use ZM\Annotation\Http\RequestMapping; use ZM\Annotation\Swoole\OnCloseEvent; use ZM\Annotation\Swoole\OnOpenEvent; use ZM\Annotation\Swoole\OnRequestEvent; -use ZM\Annotation\Swoole\OnStart; use ZM\API\CQ; use ZM\API\OneBotV11; use ZM\API\TuringAPI; use ZM\Config\ZMConfig; use ZM\ConnectionManager\ConnectionObject; use ZM\Console\Console; -use ZM\Container\WorkerContainer; -use ZM\Context\ContextInterface; use ZM\Event\EventDispatcher; use ZM\Exception\InterruptException; use ZM\Module\QQBot; @@ -30,7 +27,6 @@ use ZM\Utils\ZMUtil; /** * Class Hello - * * @since 2.0 */ class Hello @@ -138,7 +134,6 @@ class Hello * 问法2:从1到20的随机数 * @CQCommand("随机数") * @CQCommand(pattern="*从*到*的随机数") - * * @return string */ public function randNum() @@ -176,7 +171,6 @@ class Hello /** * 使用自定义参数的路由参数 * @RequestMapping("/whoami/{name}") - * * @param array $param 参数 * @return string 返回的 HTML Body */ @@ -188,7 +182,6 @@ class Hello /** * 在机器人连接后向终端输出信息 * @OnOpenEvent("qq") - * * @param ConnectionObject $conn WebSocket 连接对象 */ public function onConnect(ConnectionObject $conn) @@ -208,7 +201,6 @@ class Hello /** * 阻止 Chrome 自动请求 /favicon.ico 导致的多条请求并发和干扰 * @OnRequestEvent(rule="ctx()->getRequest()->server['request_uri'] == '/favicon.ico'",level=200) - * * @throws InterruptException */ public function onRequest()