Alex
04/14/2020, 1:05 PMconfigModule has a bind<Config>() with instance { Config(…) } binding.
I want to be able to use the instance of Config in the databaseModule which was set in the configModule.
val kodein = Kodein {
import(configModule())
import(databaseModule(instance())
}
The instance() has a compiler-level warning because it can’t use the KodeinAware.instance() function - is there a different function to use here? cc: @salomonbryssalomonbrys
04/14/2020, 2:13 PMAlex
04/14/2020, 2:51 PMsalomonbrys
04/14/2020, 3:17 PMextends the first container, use this first container to get the Config instance, then only use the second container in your app.