How to wire application configuration and environment

Open
#160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
scala
Domain
backend

Research direction

Start by reviewing the Play 2.5 dependency-injection guidance for play.Configuration, application.configuration, application.environment, and com.typesafe.config.Config, alongside MacWire's @Inject interaction. The issue names no repository files or tests, and completion is not defined beyond clarifying how this wiring should work.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Scala
Stars
1.3k
Forks
77
Avg merge
9m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from softwaremill/macwire

All issues in softwaremill/macwire

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.