modify
This commit is contained in:
@@ -19,7 +19,7 @@ use Snowflake\Snowflake;
|
||||
* Class WebController
|
||||
* @package Snowflake\Snowflake\Web
|
||||
* @property-read HttpParams $input
|
||||
* @property-read HttpHeaders $headers
|
||||
* @property-read HttpHeaders $header
|
||||
*/
|
||||
class Controller
|
||||
{
|
||||
@@ -36,6 +36,20 @@ class Controller
|
||||
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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user