package security

import models.User
import securesocial.core.RuntimeEnvironment

trait SecuredComponent {
  implicit val env: RuntimeEnvironment[User] = SecurityEnvironment
}

package security

import models.User
import securesocial.core.RuntimeEnvironment

trait SecuredComponent {
  implicit lazy val env: RuntimeEnvironment[User] = SecurityEnvironment
}

Use lazy reference to Secure Social security environment to prevent MongoDB access too early.
Use lazy reference to Secure Social security environment to prevent MongoDB access too early.
