| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 23 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 24 | { |
||
| 25 | $requestHandler = $request->getAttribute(RoutingHandler::REQUEST_HANDLER); |
||
| 26 | |||
| 27 | if ($requestHandler instanceof SecureActionInterface) { |
||
| 28 | if (!$requestHandler->isAuthorized(DaikonRequest::wrap($request))) { |
||
| 29 | return Factory::createResponse(self::STATUS_FORBIDDEN); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | return $handler->handle($request); |
||
| 34 | } |
||
| 36 |