bind

abstract fun <C : Any, A, T : Any> bind(    key: DI.Key<C, A, T>,     binding: DIBinding<in C, in A, out T>,     fromModule: String? = null,     overrides: Boolean? = null)

Binds the given key to the given binding.

Parameters

key

The key to bind.

binding

The binding to bind.

overrides

true if it must override, false if it must not, null if it can but is not required to.

Throws

If this bindings overrides an existing binding and is not allowed to.