0.0.2 • Published 10 years ago
koa-simple-di v0.0.2
koa-simple-di
var di = require('koa-simple-di');
di(app);
app.di.set('config', {
db: {
//...
}
});
app.di.set('db', function ($config) {
//...
return db;
});
License
The MIT License.
var di = require('koa-simple-di');
di(app);
app.di.set('config', {
db: {
//...
}
});
app.di.set('db', function ($config) {
//...
return db;
});
The MIT License.