addConfig

fun addConfig(config: DI.MainBuilder.() -> Unit)

Adds a configuration to the bindings that will be applied when the DI is constructed.

Parameters

config

The lambda to be applied when the DI instance is constructed.

Throws

When calling this function after getOrConstruct or any DI retrieval function.