swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Fix documentation for compile time dependency injection #157

Open asdcdow opened 6 years ago

asdcdow commented 6 years ago

SwaggerApplicationLoader went away

wanghongenpin commented 6 years ago

Hello, where do you add this code? val swaggerPlugin = new SwaggerPluginImpl(lifecycle, router, app) // Can't be lazy because of PlayApiScanner initialization side effect +lazy val apiHelpController = new ApiHelpController(components, configuration)

asdcdow commented 6 years ago

I assume you have a class like MyComponents in this guide. You would put those lines inside that class.