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;