Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(RequestHeader): Add indirect parameter
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jun 3, 2025
commit c3aa5316be2797184ea0be10c5a984a05f5592ae
2 changes: 2 additions & 0 deletions lib/public/AppFramework/Http/Attribute/RequestHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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