改名
This commit is contained in:
@@ -291,14 +291,13 @@ class Response extends HttpService
|
|||||||
/**
|
/**
|
||||||
* @param null $response
|
* @param null $response
|
||||||
* @return static
|
* @return static
|
||||||
* @throws ReflectionException
|
* @throws Exception
|
||||||
* @throws NotFindClassException
|
|
||||||
*/
|
*/
|
||||||
public static function create($response = null): static
|
public static function create($response = null): static
|
||||||
{
|
{
|
||||||
Context::setContext('response', $response);
|
Context::setContext('response', $response);
|
||||||
|
|
||||||
$ciResponse = Snowflake::createObject(Response::class);
|
$ciResponse = Snowflake::getApp('response');
|
||||||
$ciResponse->response = $response;
|
$ciResponse->response = $response;
|
||||||
$ciResponse->startTime = microtime(true);
|
$ciResponse->startTime = microtime(true);
|
||||||
$ciResponse->format = self::JSON;
|
$ciResponse->format = self::JSON;
|
||||||
|
|||||||
Reference in New Issue
Block a user