Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to wire application configuration and environment #160

Open
ouraios opened this issue May 1, 2021 · 0 comments
Open

How to wire application configuration and environment #160

ouraios opened this issue May 1, 2021 · 0 comments

Comments

@ouraios
Copy link

ouraios commented May 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant