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;