@nodeboot/di
Version:
Dependency Injection plugin for Node-Boot
19 lines • 560 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnableDI = EnableDI;
const context_1 = require("@nodeboot/context");
/**
* Defines the IOC container to use for Dependency-injection
*
* @param iocContainer The IOC container to be used
* @param options Extra options for the IOC container
*/
function EnableDI(iocContainer, options) {
return function () {
context_1.ApplicationContext.get().diOptions = {
iocContainer,
options,
};
};
}
//# sourceMappingURL=EnableDI.js.map