resolveDependencies

Convenience function for building a context in the simple case.

Alias for DependencyResolutionContext.Builder().add(sources).build()

Example:

val context = resolveDependencies(
CheeseRepository::class,
CheeseService::class,
App::class
)

val app = context.get<App>()

See also