改名
This commit is contained in:
+6
-1
@@ -4,6 +4,7 @@ defined('APP_PATH') or define('APP_PATH', realpath(__DIR__ . '/../../'));
|
|||||||
|
|
||||||
|
|
||||||
use Annotation\Annotation;
|
use Annotation\Annotation;
|
||||||
|
use HttpServer\Http\Context;
|
||||||
use HttpServer\Http\HttpParams;
|
use HttpServer\Http\HttpParams;
|
||||||
use HttpServer\Http\Request;
|
use HttpServer\Http\Request;
|
||||||
use HttpServer\Http\Response;
|
use HttpServer\Http\Response;
|
||||||
@@ -613,7 +614,11 @@ if (!function_exists('response')) {
|
|||||||
*/
|
*/
|
||||||
function response(): Response|stdClass
|
function response(): Response|stdClass
|
||||||
{
|
{
|
||||||
return Snowflake::getApp('response');
|
$response = Context::getContext('response');
|
||||||
|
if (empty($response)){
|
||||||
|
$response = Snowflake::getApp('response');
|
||||||
|
}
|
||||||
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user