Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function __invoke(callable $handler) |
||
32 | { |
||
33 | return function (RequestInterface $request, array $options) use ($handler) { |
||
34 | return $handler( |
||
35 | $this->signer->signRequest( |
||
36 | $request->withAddedHeader('Accept', 'application/json') |
||
37 | ->withAddedHeader('Content-Type', 'application/json') |
||
38 | ->withAddedHeader('x-api-key', $this->api_key) |
||
39 | ->withAddedHeader('x-dnbapi-jwt', $this->token->getJwtToken()), |
||
40 | $this->credentials |
||
41 | ), $options); |
||
42 | }; |
||
45 |