IoCContainer bind(Type type, {to})

Returns a copy of the container, with an implementation of a type bound. Subsequent requests for injections of the type will be provided the to value.

to can be either a Type that is an instance of, or a subtype of type, or an instance of type.

bind(A, to: B).make(A); // Instance of 'B'
bind(A, to: new A()).make(A); // Instance of 'A'
bind(A, to: new B()).make(A); // Instance of 'B'

Source

IoCContainer bind(Type type, {to});