Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function __invoke(callable $next) |
||
39 | { |
||
40 | return function (RequestInterface $request, array $options = []) use ($next) { |
||
41 | |||
42 | $request = $this->addAuthQueryParams($request); |
||
43 | $sign = $this->generateSign($request->getUri()->__toString()); |
||
44 | $request = $request->withAddedHeader('apisign', $sign); |
||
45 | |||
46 | return $next($request, $options); |
||
47 | }; |
||
48 | } |
||
49 | |||
73 |