https://kotlinlang.org logo
#ktor
Title
# ktor
h

helpermethod

01/30/2023, 1:17 PM
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

Aleksei Tirman [JB]

01/30/2023, 3:46 PM
Can you please describe your problem in more detail?
h

helpermethod

01/31/2023, 10:39 AM
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.
6 Views