score:-1

You can inject it like this:

class MyClass @Inject() (protected val dbConfigProvider: DatabaseConfigProvider)
    extends HasDatabaseConfigProvider[MyPostgresDriver]

With these imports:

import javax.inject.Inject
import database.MyPostgresDriver
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider}
import database.MyPostgresDriver.api._

Related Query

More Query from same tag