Does Koin support module hierarchy similar to Guic...
# koin
t
Does Koin support module hierarchy similar to Guice? I'm only familiar with Spring and Guice from Java projects and coming to Kotlin looking to use Koin as a pure Kotlin DI framework. I'd like to compose various modules rather than having the top-level application entry point have to know every module in the project. I.e. passing modules to
startKoin { modules() }
. Rather I'd like modules to be able to "install" other modules. This is how I'm used to structuring a project with Guice and maybe I'm just trying to apply this pattern where another might be better. Any help or guidance would be appreciated.
👌 1
a
You could user
Copy code
// load definitions for given module
loadKoinModules(module)
// unload definitions for given module
unloadKoinModules(module)