From cc47889993e0cb329cc7a88b61fc567f4d7cd3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 6 Aug 2021 17:02:33 +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 --- System/Jwt/Jwt.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Jwt/Jwt.php b/System/Jwt/Jwt.php index 957f6e92..78ac659d 100644 --- a/System/Jwt/Jwt.php +++ b/System/Jwt/Jwt.php @@ -22,8 +22,6 @@ class Jwt extends Component use JwtHelper; - /** @var Request */ - #[Inject(Request::class)] private Request $request; @@ -33,6 +31,7 @@ class Jwt extends Component */ public function init() { + $this->request = di(Request::class); if (!Config::has('ssl.public') || !Config::has('ssl.private')) { return; }