| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function getSwaggerResponse($cache = []) |
||
| 38 | { |
||
| 39 | $swagger = $this->getSwagger(); |
||
| 40 | |||
| 41 | $response = new Response( |
||
| 42 | $swagger, |
||
| 43 | Response::HTTP_OK, |
||
| 44 | ['Content-Type' => 'application/json'] |
||
| 45 | ); |
||
| 46 | $response->setCache($cache); |
||
| 47 | $response->setEtag(md5($swagger)); |
||
| 48 | |||
| 49 | return $response; |
||
| 50 | } |
||
| 51 | |||
| 62 |