direct

fun direct(allowSilentOverride: Boolean = false, init: DI.MainBuilder.() -> Unit): DirectDI

Creates a direct DirectDI instance that will be lazily created upon first access.

Return

The new DirectDI object, freshly created, and ready for hard work!

Parameters

allowSilentOverride

Whether the configuration block is allowed to non-explicit overrides.

init

The block of configuration.