I’m trying to migrate my Ktor app from Kodein to K...
# koin
k
I’m trying to migrate my Ktor app from Kodein to Koin’s new annotations framework and I have a question. Is it possible to pass arguments to
Module
? I would like to pass `Application`’s
CoroutineScope
this way:
Copy code
@Module()
class AppModule(private val scope: CoroutineScope)
but generated method doesn’t let me do so:
Copy code
val AppModuleModule = module {
	val moduleInstance = com.kamilh.AppModule() <- it calls contructor here and tells that "No value passed for parameter 'scope'"
    ...
}
val com.kamilh.AppModule.module : org.koin.core.module.Module get() = AppModuleModule
how can I overcome this issue?