Before play framework 2.5, i can get current application instance within an object, as following code:
object MyObj {
val app = Play.current
}
But Play.current is deprecated from play 2.5, so how can i get current application instance from MyObj object?