feat(RequestHeader): Add indirect parameter

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-06-03 11:00:45 +02:00
parent 727b0c853c
commit c3aa5316be
No known key found for this signature in database

View file

@ -23,10 +23,12 @@ class RequestHeader {
/**
* @param lowercase-string $name The name of the request header
* @param non-empty-string $description The description of the request header
* @param bool $indirect Allow indirect usage of the header for example in a middleware. Enabling this turns off the check which ensures that the header must be referenced in the controller method.
*/
public function __construct(
protected string $name,
protected string $description,
protected bool $indirect = false,
) {
}
}