Marc Knaup
03/13/2020, 11:56 AMval kodein = Kodein.scoped(myScope) {
bind() from singleton { context.createFoo() }
}
If there is already a way that would be great!
If you think it’s worth adding I’ll open an issue.romainbsl
03/13/2020, 1:01 PMMarc Knaup
03/13/2020, 2:26 PMKodein.ScopedBuilder<T>. () -> Unit
for example.
No need for “consumers” to know about how scoping is implemented.Marc Knaup
03/13/2020, 2:27 PMromainbsl
03/13/2020, 2:43 PMMarc Knaup
03/13/2020, 2:43 PMromainbsl
03/13/2020, 2:45 PMKodein
to DI
as we will soon have more Kodein libraries, so the class name Kodein
won’t fit anymore.Marc Knaup
03/13/2020, 2:46 PMromainbsl
03/13/2020, 2:46 PMMarc Knaup
03/13/2020, 2:46 PMtypeOf()
?romainbsl
03/13/2020, 2:46 PMromainbsl
03/13/2020, 2:47 PMtypeOf()
for anything but JVM, as its not fully compatible yetromainbsl
03/13/2020, 2:49 PMgeneric-jvm
/ erased
to the benefit of one unique KMP libMarc Knaup
03/13/2020, 2:49 PMromainbsl
03/13/2020, 2:51 PM7.0
its just around the corner. Unfortunately we had to broke some API compatibility because of the renaming 😢Marc Knaup
03/13/2020, 2:52 PMMarc Knaup
03/13/2020, 2:52 PM