title: How to inject Database in Play Framework (Scala, Scaldi) if we use specific datasource?
body: <p>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. </p>
  
  <p>Any of you guys could explain how to convern NamedDatabase to scaldi environment?</p>
  
  <p>Btw, here's my code snipet how to use NamedDatabase in play scala.</p>
  
  <pre><code>class MembershipSqlStorage @Inject() (@NamedDatabase("membership") db: Database)
  </code></pre>
  
  <p>and it works.</p>
  
  <p>Thanks</p>