Hi guys, I would like to know if it is ok inject o...
# kodein
j
Hi guys, I would like to know if it is ok inject objects from other modules to "compose" new instances of
Kodein.Module {}
... Something like the code down below:
Copy code
object SomeModule {

    val someObject : SomeObject by injector.lazy.instance()

    val instance = Kodein.Module {
        bind<FirstObject>() with provider { FirstObject() }
        bind<SecondeObject>() with singleton { SecondObject() }
        bind<ThirdObject>() with singleton { ThirdObject(someObject) }
    }

}