macwire icon indicating copy to clipboard operation
macwire copied to clipboard

How to wire application configuration and environment

Open ouraios opened this issue 4 years ago • 0 comments

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.

ouraios avatar May 01 '21 01:05 ouraios