class SimpleApplicationLoader extends ApplicationLoader {
def load(context: Context) = {
new ApplicationComponents(context).application
}
}
trait DBModule extends DBComponents with HikariCPComponent {
def dbApi: DBApi
//lazy val db = ??
}
class ApplicationComponents(context: Context) extends BuiltInComponentsFromContext(context) with DBComponents {
lazy val applicationController = new controllers.Application("test")
lazy val assets = new controllers.Assets(httpErrorHandler)
override lazy val router = new Routes(httpErrorHandler, applicationController, assets)
}}