Slim needs a simpler way to define an Swagger API. No docblock magic, just code.
This project is at an early stage. Functionality will break.
You need to override the router and add the swagger liberary to Slim. A clean way of doing this is BEFORE the $app object is initiated.
Minimal example:
use Slim\App;
use SlimSwagger\SlimSwagger;
$container = SlimSwagger::init();
$app = new App($container);
use SlimSwagger\SwaggerAction;
$app->get('/swagger.json', SwaggerAction::class);