From b952f03e014419056e721397aa413a5e19cb606f Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Wed, 26 Apr 2023 11:02:31 +0800 Subject: [PATCH] Instead of classes and functions of `Hyperf\Utils` (#5674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- composer.json | 1 + src/Middleware/HttpServerMiddleware.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3cdb442..1728df6 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,7 @@ "require": { "php": ">=8.0", "hyperf/contract": "~3.0.0", + "hyperf/support": "~3.0.0", "hyperf/utils": "~3.0.0", "psr/container": "^1.0|^2.0", "psr/http-server-middleware": "^1.0" diff --git a/src/Middleware/HttpServerMiddleware.php b/src/Middleware/HttpServerMiddleware.php index 4df787b..e6aba55 100644 --- a/src/Middleware/HttpServerMiddleware.php +++ b/src/Middleware/HttpServerMiddleware.php @@ -12,7 +12,7 @@ namespace Hyperf\SwooleTracker\Middleware; use Hyperf\Contract\ConfigInterface; -use Hyperf\Utils\Network; +use Hyperf\Support\Network; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\MiddlewareInterface;