https://kotlinlang.org logo
#koin
Title
# koin
g

Giuliopime

12/14/2023, 10:19 AM
How do I create all instances of koin classes marked as
createAtStart
on application initialisation? I'm using ktor and classes do not get instantiated with the following code:
Copy code
install(Koin) {
        slf4jLogger(Level.valueOf(ApplicationConfig.logLevel.levelStr))
        modules(LogicModule().module, ClientModule().module, DataModule().module)
    }
1
Solved it with
createEagerInstances
inside the
install
block
👍 1