WithCollection
import scala.concurrent.Future
import reactivemongo.api.DB
import reactivemongo.api.bson.collection.BSONCollection
import play.modules.reactivemongo.WithCollection
class MyComponent(
val collectionName: String) extends WithCollection[BSONCollection] {
def database: Future[DB] = ???
}