softwaremill / softwaremill/macwire

How to wire application configuration and environment

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

Nobody has claimed this yet.

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

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.

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.