robin
12/07/2018, 5:03 PMval coreModule = module { single<Foo> { Foo() } }
val mainModule = module(override = true) { single<Foo> { DecoratedFoo(get<Foo>()) } }
startKoin(listOf(coreModule, mainModule)
[...]
val foo = get<Foo>()
I want foo
in the last line to resolve to DecoratedFoo(Foo())
when I call get<Foo>()
. Is this possible somehow?