Open apatrida opened 8 years ago
Add example to docs or example application, where a scope is propagated to other classes.
See example written as test case of this: https://github.com/kohesive/injekt/blob/master/core/src/test/kotlin/uy/kohesive/injekt/TestInjektion.kt#L202-L247
Which uses LocalScoped(see implementation)
LocalScoped
And uses scoped factory registrations (see implementation)
related: http://stackoverflow.com/questions/35315548/in-the-injekt-library-for-kotlin-how-do-i-create-local-scopes-such-as-for-each
Add example to docs or example application, where a scope is propagated to other classes.
See example written as test case of this: https://github.com/kohesive/injekt/blob/master/core/src/test/kotlin/uy/kohesive/injekt/TestInjektion.kt#L202-L247
Which uses
LocalScoped
(see implementation)And uses scoped factory registrations (see implementation)