| 1 | <?php |
||
| 7 | class SwaggerProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * How to use |
||
| 11 | * |
||
| 12 | * SwaggerProvider::register($app, function(Swagger $swagger){ |
||
| 13 | * $swagger->host = 'api.example.com', |
||
| 14 | * $swagger->info->description = '...'; |
||
| 15 | * ... |
||
| 16 | * }, |
||
| 17 | * '/docs') |
||
| 18 | * |
||
| 19 | * @param Application $app |
||
| 20 | * @param string $prefix |
||
| 21 | * @param callable $callback |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | static public function register(Application $app, |
||
| 37 | } |