diff --git a/HttpServer/Controller.php b/HttpServer/Controller.php index 8e1271bb..a2e57c46 100644 --- a/HttpServer/Controller.php +++ b/HttpServer/Controller.php @@ -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 *