modify
This commit is contained in:
@@ -60,7 +60,7 @@ class Request implements RequestInterface
|
||||
$sRequest->params->setPosts($request->post);
|
||||
$sRequest->params->setGets($request->get);
|
||||
|
||||
Context::setContext(Request::class, $sRequest);
|
||||
Context::setContext(HttpResponse::class, $sRequest);
|
||||
|
||||
return Snowflake::getDi()->get(Request::class);
|
||||
}
|
||||
|
||||
@@ -124,7 +124,6 @@ class HTTPServerListener extends Abstracts\Server
|
||||
if (!(($responseData = $node->dispatch()) instanceof ResponseInterface)) {
|
||||
$responseData = $this->response->setContent($responseData)->setStatusCode(200);
|
||||
}
|
||||
var_dump($responseData);
|
||||
} catch (Error | Throwable $exception) {
|
||||
$responseData = $this->exceptionHandler->emit($exception, $this->response);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user