From 3310d45f155b189c28085e2caf743317ae8ef38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 16:51:23 +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 --- HttpServer/Http/Response.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 2fa052cb..e4c220b0 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -291,14 +291,13 @@ class Response extends HttpService /** * @param null $response * @return static - * @throws ReflectionException - * @throws NotFindClassException + * @throws Exception */ public static function create($response = null): static { Context::setContext('response', $response); - $ciResponse = Snowflake::createObject(Response::class); + $ciResponse = Snowflake::getApp('response'); $ciResponse->response = $response; $ciResponse->startTime = microtime(true); $ciResponse->format = self::JSON;