title: how to get current application instance in companion object
body: <p>Before play framework 2.5, i can get current application instance within an object, as following code:</p>
  
  <pre><code>  object MyObj {
        val app = Play.current
    }
  </code></pre>
  
  <p>But Play.current is deprecated from play 2.5, so how can i get current application instance from MyObj object?</p>