Skip to content

add singleton as source helper#72

Open
piercus wants to merge 2 commits intojaredhanson:masterfrom
piercus:sources-singleton
Open

add singleton as source helper#72
piercus wants to merge 2 commits intojaredhanson:masterfrom
piercus:sources-singleton

Conversation

@piercus
Copy link

@piercus piercus commented Jan 12, 2018

Hello,

Following remarks in #35, #27 and #35 i was not finding a good way to inject singletons manually.

I'd like to have this design

IoC.use(IoC.singleton('settings', {foo : 'bar'}));

Hope it will help someone

@coveralls
Copy link

coveralls commented Jan 12, 2018

Coverage Status

Coverage decreased (-1.6%) to 91.93% when pulling 799b061 on piercus:sources-singleton into d6af75b on jaredhanson:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants