| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 28 | public function createOpenApi(array $params, ContainerInterface $container) : OpenApi |
||
| 29 | { |
||
| 30 | $info = new Info( |
||
| 31 | $container->get('app.name'), |
||
| 32 | $container->get('app.version') |
||
| 33 | ); |
||
| 34 | |||
| 35 | $openapi = new OpenApi($info); |
||
| 36 | |||
| 37 | $openapi->addRoute(...$container->get('router')->getRoutes()); |
||
| 38 | |||
| 39 | return $openapi; |
||
| 40 | } |
||
| 42 |