Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
16 | public function process( |
||
17 | ServerRequestInterface $request, |
||
18 | RequestHandlerInterface $handler): ResponseInterface |
||
19 | { |
||
20 | if ('OPTIONS' === $request->getMethod()) { |
||
21 | return $handler->handle($request); |
||
22 | } |
||
23 | $request = $request->withAttribute('@user', $this->processor->authenticate( |
||
24 | $this->backend, $request->getHeaderLine('Authorization') |
||
25 | )); |
||
26 | return $handler->handle($request); |
||
27 | } |
||
29 |