combine

Applies a ModuleDefinition to a given DefaultScope, registering all the defined dependencies.

Parameters

scope

The DefaultScope to which the module will be applied.

block

The ModuleDefinition lambda containing the dependency bindings.


fun combine(scope: DefaultScope, vararg block: ModuleDefinition)

Applies multiple ModuleDefinitions to a given DefaultScope. This is a convenience function to register several modules at once.

Parameters

scope

The DefaultScope to which the modules will be applied.

block

A variable number of ModuleDefinition lambdas.