From 6b3be1b0f9f79ae63d5e5ec7400c4e82d6653f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 13 Jul 2021 11:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Emit.php | 40 --------------------------- System/Abstracts/TraitApplication.php | 2 -- System/Application.php | 11 +++----- 3 files changed, 4 insertions(+), 49 deletions(-) delete mode 100644 HttpServer/Emit.php diff --git a/HttpServer/Emit.php b/HttpServer/Emit.php deleted file mode 100644 index 07f1fcb7..00000000 --- a/HttpServer/Emit.php +++ /dev/null @@ -1,40 +0,0 @@ -getTable('SYSTEM:ONLINE:PEOPLES'); - - foreach ($users as $user) { - $fd = $table->get((string)$user, ['clientId']); - - Snowflake::push($fd, $message); - } - - } - - -} diff --git a/System/Abstracts/TraitApplication.php b/System/Abstracts/TraitApplication.php index 2be2cfe7..79a6ccc6 100644 --- a/System/Abstracts/TraitApplication.php +++ b/System/Abstracts/TraitApplication.php @@ -9,7 +9,6 @@ use Database\DatabasesProviders; use HttpServer\Client\Client; use HttpServer\Client\Curl; use HttpServer\Client\Http2; -use HttpServer\Emit; use HttpServer\Http\Request; use HttpServer\Http\Response; use HttpServer\HttpFilter; @@ -52,7 +51,6 @@ use Rpc\Producer as RPCProducer; * @property RPCProducer $rpc * @property Channel $channel * @property Shutdown $shutdown - * @property Emit $emit * @property Pool $clientsPool */ trait TraitApplication diff --git a/System/Application.php b/System/Application.php index b121167a..1ad0e99f 100644 --- a/System/Application.php +++ b/System/Application.php @@ -21,13 +21,10 @@ use Snowflake\Abstracts\BaseApplication; use Snowflake\Abstracts\Config; use Snowflake\Abstracts\Input; use Snowflake\Abstracts\Kernel; -use Snowflake\Core\Json; use Snowflake\Crontab\CrontabProviders; use Snowflake\Exception\NotFindClassException; use stdClass; use Swoole\Timer; -use Wchat\WchatProviders; -use function Co\run; /** * Class Init @@ -106,10 +103,10 @@ class Application extends BaseApplication } - /** - * @param $kernel - * @return $this - */ + /** + * @param Kernel $kernel + * @return $this + */ public function commands(Kernel $kernel): static { foreach ($kernel->getCommands() as $command) {