| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 55 | 4 | public function handle(ServerRequestInterface $request) : ResponseInterface |
|
| 56 | { |
||
| 57 | 4 | $request = $request->withAttribute(self::ATTR_NAME_FOR_ROUTE_NAME, $this->route->getName()); |
|
| 58 | |||
| 59 | 4 | foreach ($this->route->getAttributes() as $key => $value) { |
|
| 60 | 4 | $request = $request->withAttribute($key, $value); |
|
| 61 | } |
||
| 62 | |||
| 63 | 4 | $handler = new QueueableRequestHandler($this->route->getRequestHandler()); |
|
| 64 | |||
| 65 | 4 | $handler->add(...$this->route->getMiddlewares()); |
|
| 66 | |||
| 67 | 4 | return $handler->handle($request); |
|
| 68 | } |
||
| 70 |