You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
Hinoki seems to be the least surprising IoC container available for Node. I definitely do like its ascetic worldview. Thanks a lot for this! Yet, are there any plans for the future releases?
I was wondering if it's possible to achieve something like this with the current 0.3.0-beta.16:
varcontainer={values: {a: 11,b: 22,c: 33},factories: {handlers: [// factory functions may return promises as wellfunction(a,b){returnnewHandlerA(a,b);},function(a,c){returnnewHandlerB(a,c);},function(a,b,c){returnnewHandlerC(a,b,c);}]}};hinoki.get(container,'handlers').then(function(handlers){// handlers[0] - an instance of HandlerA// handlers[1] - an instance of HandlerB// handlers[2] - an instance of HandlerC});