This commit is contained in:
2021-08-01 19:04:34 +08:00
parent 822f7a7f36
commit b71b45c5c8
5 changed files with 442 additions and 419 deletions
+4 -4
View File
@@ -26,21 +26,21 @@ class Controller
*
* @var Request|null
*/
#[Inject(value: Request::class)]
#[Inject('request')]
public ?Request $request = null;
/**
* @var HttpParams|null
*/
#[Inject(value: HttpParams::class)]
#[Inject('input')]
public ?HttpParams $input = null;
/**
* @var HttpHeaders|null
*/
#[Inject(value: HttpHeaders::class)]
#[Inject('header')]
public ?HttpHeaders $header = null;
@@ -49,7 +49,7 @@ class Controller
*
* @var Response|null
*/
#[Inject(value: Response::class)]
#[Inject('response')]
public ?Response $response = null;
+1 -2
View File
@@ -127,7 +127,7 @@ class Node extends HttpService
* @throws NotFindClassException
* @throws Exception
*/
#[Pure] private function createDispatch(): Closure
private function createDispatch(): Closure
{
/** @var Aop $aop */
$aop = Snowflake::app()->get('aop');
@@ -157,7 +157,6 @@ class Node extends HttpService
/**
* @param $application
* @param $handler
* @return Closure
*/