macwire
macwire copied to clipboard
How to wire application configuration and environment
Hello,
I'm trying to upgrade from play 2.4.x to 2.5.x, i saw that starting from 2.5.x play.api.Play.current need to be used with DI now, i tried to wire play.Configuration but i get the following error Cannot find a value of type: [com.typesafe.config.Config] how can i wire application.configuration & application.environment through macwire ?
I also tried with @Inject but it seems @Inject conflict with wire.
Sorry if my question is silly, i'm a beginner in scala play not really used to all of that.