fire-up
Version:
Fire Up! is a dependency injection container designed specifically for node.js with a powerful but sleek API.
24 lines (19 loc) • 508 B
JavaScript
;
// Fire me up!
module.exports = {
implements: 'instantiation/factoryAdapters/constructorWithDependencies',
inject: [
'instantiation/factoryAdapters/constructor',
'instantiation/factoryAdapters/constructorMultiple'
]
};
module.exports._constructor = function (dep1, dep2) {
this.me = [
'instantiation/factoryAdapters/constructorWithDependencies',
dep1.getMe(),
dep2.getMe()
];
};
module.exports._constructor.prototype.getMe = function () {
return this.me;
};