Module
data class Module(name: String, allowSilentOverride: Boolean, prefix: String, init: DI.Builder.() -> Unit)
Content copied to clipboard
A module is constructed the same way as in DI is:
val module = DI.Module {
bind<DataSource>() with singleton { SqliteDS.open("path/to/file") }
}Content copied to clipboard
Constructors
Module
Link copied to clipboard
Content copied to clipboard