from

abstract infix fun <C : Any, A, T : Any> from(binding: DIBinding<in C, in A, out T>)

Binds the previously given tag to the given binding.

The bound type will be the DIBinding.createdType.

Parameters

binding

The binding to bind.

Throws

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