From f22e0924d99a7ec7a91b561166d3f50b180720ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 17 Oct 2023 20:21:37 +0800 Subject: [PATCH] eee --- src/Request.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Request.php b/src/Request.php index 3a3b771..85f6f5f 100644 --- a/src/Request.php +++ b/src/Request.php @@ -65,12 +65,7 @@ class Request implements ServerRequestInterface */ private function __call__(string $method, ...$params): mixed { - if (!Context::exists(RequestInterface::class)) { - $response = Context::set(RequestInterface::class, new static()); - } else { - $response = Context::get(RequestInterface::class); - } - return $response->{$method}(...$params); + return \request()->{$method}(...$params); }