corbella83 / PopKorn

DI can be simple. Forget about modules and components. Just use it!
Apache License 2.0
155 stars 5 forks source link

Default environments #17

Open JavierSegoviaCordoba opened 3 years ago

JavierSegoviaCordoba commented 3 years ago

Example use case:

appBarcelona uses environment barcelona appMadrid uses environment madrid app doesn't indicate an environment

Using default environments lets override some implementations that use specific environments in specific apps and keeping the common implementation for apps that don't indicate an environment.

If a default environment is indicated but there isn't an implementation with that environment, the common implementation should be used.