resolve Dependencies And Get
Convenience function for building a context and extracting the "main" constructed object in the simple case.
Alias for resolveDependencies(*sources).get<T>()
Example:
val app = resolveDependenciesAndGet<App>(
CheeseRepository::class,
CheeseService::class,
App::class
)
Content copied to clipboard