Get the Newsletter

singleton

A Method

singleton(type: any, implementation?: Function): FrameworkConfiguration

Adds a singleton to the framework's dependency injection container.

Parameters

type: any
The object type of the dependency that the framework will inject.
implementation?: Function
The constructor function of the dependency that the framework will inject.

Returns

Returns the current FrameworkConfiguration instance.