qqq
This commit is contained in:
@@ -29,6 +29,16 @@ class Request implements ServerRequestInterface
|
|||||||
public string $exception = ExceptionHandlerDispatcher::class;
|
public string $exception = ExceptionHandlerDispatcher::class;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middlewares = \config('request.middlewares', []);
|
||||||
|
$this->exception = \config('request.exception', ExceptionHandlerDispatcher::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return AuthorizationInterface|null
|
* @return AuthorizationInterface|null
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -31,6 +31,15 @@ class Response implements ResponseInterface
|
|||||||
public string|ResponseEmitterInterface $emmit = SwooleHttpResponseEmitter::class;
|
public string|ResponseEmitterInterface $emmit = SwooleHttpResponseEmitter::class;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->contentType = \config('response.content-type', ContentType::JSON);
|
||||||
|
$this->emmit = \config('response.emmit', SwooleHttpResponseEmitter::class);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
|
|||||||
Reference in New Issue
Block a user