From c3aa5316be2797184ea0be10c5a984a05f5592ae Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 3 Jun 2025 11:00:45 +0200 Subject: [PATCH] feat(RequestHeader): Add indirect parameter Signed-off-by: provokateurin --- lib/public/AppFramework/Http/Attribute/RequestHeader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/public/AppFramework/Http/Attribute/RequestHeader.php b/lib/public/AppFramework/Http/Attribute/RequestHeader.php index 703d482c3e3..1d0fbbfa0c3 100644 --- a/lib/public/AppFramework/Http/Attribute/RequestHeader.php +++ b/lib/public/AppFramework/Http/Attribute/RequestHeader.php @@ -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, ) { } }