1 | <?php |
||
8 | class ApiKeyPsr7RequestAuthorizer implements Psr7RequestAuthorizerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @todo Is it possible to reuse ApiKey from 'cultuurnet/udb3-api-guard'? |
||
12 | * @var StringLiteral |
||
13 | */ |
||
14 | private $apiKey; |
||
15 | |||
16 | /** |
||
17 | * It is also possible to work without ApiKey, so the ApiKey can be null. |
||
18 | * This can only be covered by setting default null value. |
||
19 | * |
||
20 | * @param StringLiteral $apiKey |
||
21 | */ |
||
22 | public function __construct(StringLiteral $apiKey) |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | public function authorize(RequestInterface $request) |
||
34 | } |