mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
feat(RequestHeader): Add indirect parameter
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
727b0c853c
commit
c3aa5316be
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue