This commit is contained in:
as2252258@163.com
2021-07-27 00:41:00 +08:00
parent 55e3e94b52
commit 5bc3f7c648
+15 -1
View File
@@ -19,7 +19,7 @@ use Snowflake\Snowflake;
* Class WebController * Class WebController
* @package Snowflake\Snowflake\Web * @package Snowflake\Snowflake\Web
* @property-read HttpParams $input * @property-read HttpParams $input
* @property-read HttpHeaders $headers * @property-read HttpHeaders $header
*/ */
class Controller class Controller
{ {
@@ -36,6 +36,20 @@ class Controller
protected Request $request; protected Request $request;
/**
* @var \HttpServer\Http\HttpParams
*/
#[Inject(className: 'input', withContext: true)]
protected HttpParams $input;
/**
* @var \HttpServer\Http\HttpHeaders
*/
#[Inject(className: 'header', withContext: true)]
protected HttpHeaders $header;
/** /**
* inject response * inject response
* *