From 05f6d99c3da0695854afc38c2a861a0cf2a9f17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Tue, 1 Mar 2022 11:13:47 +0800 Subject: [PATCH] Use `Hyperf/Context/Context` instead of `Hyperf/Utils/Context`. (#4565) --- src/Listener/PageResolverListener.php | 2 +- tests/PageResolverListenerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Listener/PageResolverListener.php b/src/Listener/PageResolverListener.php index c0623d4..899fd94 100644 --- a/src/Listener/PageResolverListener.php +++ b/src/Listener/PageResolverListener.php @@ -11,12 +11,12 @@ */ namespace Hyperf\Paginator\Listener; +use Hyperf\Context\Context; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Framework\Event\BootApplication; use Hyperf\HttpServer\Contract\RequestInterface; use Hyperf\Paginator\Paginator; use Hyperf\Utils\ApplicationContext; -use Hyperf\Utils\Context; use Psr\Http\Message\ServerRequestInterface; class PageResolverListener implements ListenerInterface diff --git a/tests/PageResolverListenerTest.php b/tests/PageResolverListenerTest.php index d0fa841..63aaa98 100644 --- a/tests/PageResolverListenerTest.php +++ b/tests/PageResolverListenerTest.php @@ -11,6 +11,7 @@ */ namespace HyperfTest\Paginator; +use Hyperf\Context\Context; use Hyperf\Di\Container; use Hyperf\Framework\Event\BootApplication; use Hyperf\HttpServer\Contract\RequestInterface; @@ -19,7 +20,6 @@ use Hyperf\Paginator\Listener\PageResolverListener; use Hyperf\Paginator\Paginator; use Hyperf\Utils\ApplicationContext; -use Hyperf\Utils\Context; use Mockery; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ServerRequestInterface as PsrServerRequestInterface;