Fluent API class for configuring the initial binding type. This is the entry point for the binding configuration chain.
container.bind('service') .constant(myService) .singleton(); Copy
container.bind('service') .constant(myService) .singleton();
Protected
Binds a value as a class, initializing it whenever it is first resolved.
Binds a value as a constant.
Binds a value as a factory, supplying the container for use when constructing your value.
Fluent API class for configuring the initial binding type. This is the entry point for the binding configuration chain.
Example