1 | <?php |
||
9 | trait HeaderFetcher |
||
10 | { |
||
11 | /** |
||
12 | * Returns the header, throws an exception if the header is specified more that one in the request. |
||
13 | * Returns null if nothing found. |
||
14 | * |
||
15 | * @param ServerRequestInterface $request |
||
16 | * @param string $header |
||
17 | * @return string|null |
||
18 | * @throws CsrfHeaderCheckMiddlewareException |
||
19 | */ |
||
20 | protected function getHeaderLine(ServerRequestInterface $request, string $header) |
||
31 | } |
||
32 |