1 | <?php |
||
12 | class OriginOrRefererHeader implements SourceOriginInterface |
||
13 | { |
||
14 | use HeaderFetcher; |
||
15 | |||
16 | /** |
||
17 | * Returns the domain name of the website performing the request. |
||
18 | * |
||
19 | * @param ServerRequestInterface $request |
||
20 | * @return string |
||
21 | * @throws \TheCodingMachine\Middlewares\CsrfHeaderCheckMiddlewareException |
||
22 | */ |
||
23 | public function __invoke(ServerRequestInterface $request): string |
||
37 | } |
||
38 |