Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function __invoke(callable $handler) |
||
33 | { |
||
34 | return function (RequestInterface $request, array $options) use ($handler) { |
||
35 | foreach ($this->authentication->getHeaders() as $header) { |
||
36 | $request = $request->withHeader( |
||
37 | $header->getHeaderKey(), |
||
38 | $header->getHeaderValue() |
||
39 | ); |
||
40 | } |
||
41 | |||
42 | return $handler($request, $options); |
||
43 | }; |
||
46 |