title: Play 2.5.X: method current in object Play is deprecated: This is a static reference to application, use DI instead
body: <p>I'm new to PlayFramework.</p>
  
  <p>Please give me a sample how to access Configuration parameters from my view. I'm using PlayFramework 2.5.3</p>
  
  <p>Old way (@current is deprecated):</p>
  
  <pre><code>@current.configuration.getString("environment.param")
  </code></pre>
  
  <p>New way (as far as I understand, Configuration should be injected):</p>
  
  <p>I know how to access it from controller.</p>
  
  <pre><code>@Inject() (val messagesApi: MessagesApi, configuration: Configuration)
  </code></pre>
  
  <p>How do I use it from my view?</p>