| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 30 | public function render(OpenApi $spec, array $options = []): string |
||
| 31 | { |
||
| 32 | return $this->twig->render( |
||
| 33 | 'SwaggerUi/swagger.html.twig', |
||
| 34 | array_merge_recursive( |
||
| 35 | $options, |
||
| 36 | [ |
||
| 37 | 'swagger_data' => ['spec' => json_decode($spec->toJson(), true)], |
||
| 38 | 'base_assets' => self::BASE_ASSETS |
||
| 39 | ] |
||
| 44 |