modify
This commit is contained in:
@@ -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
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user