feat(RequestHeader): Add indirect parameter

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/53283/head
provokateurin 4 months ago
parent 727b0c853c
commit c3aa5316be
No known key found for this signature in database
  1. 2
      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,
) {
}
}

Loading…
Cancel
Save