I want to use Anorm as DB library and Scaldi as DI in my play framework project. But now I couldn't inject Database since in newest play framwork, we cannot use DB.getConnection("datasource") anymore.
Any of you guys could explain how to convern NamedDatabase to scaldi environment?
Btw, here's my code snipet how to use NamedDatabase in play scala.
class MembershipSqlStorage @Inject() (@NamedDatabase("membership") db: Database)
and it works.
Thanks