| 1 | <?php |
||
| 14 | class SwaggerService |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var SwaggerConfig |
||
| 18 | */ |
||
| 19 | private $config; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $cacheConfig; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * SwaggerService constructor. |
||
| 28 | * |
||
| 29 | * @param SwaggerConfig $config |
||
| 30 | * @param array $cacheConfig |
||
| 31 | */ |
||
| 32 | 4 | public function __construct(SwaggerConfig $config, array $cacheConfig = []) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 40 | * |
||
| 41 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 42 | * @throws \InvalidArgumentException |
||
| 43 | */ |
||
| 44 | 1 | public function getSwaggerResponse(Request $request) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return \Swagger\Annotations\Swagger |
||
| 62 | */ |
||
| 63 | 1 | public function getSwagger() |
|
| 72 | } |
||
| 73 |