Hi! I'm using Koin for wiring together my object g...
# ktor
h
Hi! I'm using Koin for wiring together my object graph. Now, one problem I see is to inject configuration into my dependencies. Is is okay to inject the Configuration via
ConfigFactory. load()
?
a
Can you please describe your problem in more detail?
h
Im using koin to wire together some services and clients. E.g. I have a TwitterClient which needs to configuration options,
application
and
token
. I would love to read them from application.conf (injected via env variables). But how would I access the config in Koin? I could pass
environment
from Application to the Koin module, though I don't know if that is the way to go.