resolveDependenciesAndGet

inline fun <T> resolveDependenciesAndGet(vararg sources: Any): T

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
)

See also