Compare commits
2 Commits
dd08763161
...
94b61f3de5
| Author | SHA1 | Date | |
|---|---|---|---|
| 94b61f3de5 | |||
| dcc70aab3a |
@ -2,9 +2,16 @@ package be.simplenotes.app.modules
|
||||
|
||||
import be.simplenotes.app.Config
|
||||
import org.koin.dsl.module
|
||||
import org.koin.dsl.onClose
|
||||
|
||||
val configModule = module {
|
||||
single { Config() }
|
||||
single { Config() } onClose {
|
||||
println("Unloaded config")
|
||||
println("Unloaded config")
|
||||
println("Unloaded config")
|
||||
println("Unloaded config")
|
||||
}
|
||||
|
||||
single { get<Config>().dataSourceConfig }
|
||||
single { get<Config>().jwtConfig }
|
||||
single { get<Config>().serverConfig }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user