Module
data class Module( val allowSilentOverride: Boolean = false, val prefix: String = "", val 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