| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 36 | { |
||
| 37 | if (Configure::check('API.apiBaseUrl')) { |
||
| 38 | $identity = $request->getAttribute('identity'); |
||
| 39 | if ($identity && $identity->get('tokens')) { |
||
| 40 | ApiClientProvider::getApiClient()->setupTokens($identity->get('tokens')); |
||
| 41 | } |
||
| 42 | $this->readApiConfig(); |
||
| 43 | } |
||
| 44 | |||
| 45 | return $handler->handle($request); |
||
| 46 | } |
||
| 48 |