Other than singleton life style in closure-diContainer

18 views
Skip to first unread message

Tomáš Lembacher

unread,
Oct 11, 2014, 10:56:50 AM10/11/14
to est...@googlegroups.com
Hi,

how to enforce diContainer to create new instance for every call of resolve*() method? I want to create a several instances of the same class.

Thank you

Tomas Lembacher

Daniel Steigerwald

unread,
Oct 11, 2014, 11:06:19 AM10/11/14
to est...@googlegroups.com
Create a factory class and call it whereever you want.

--
You received this message because you are subscribed to the Google Groups "Este.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to estejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomáš Lembacher

unread,
Oct 11, 2014, 11:41:48 AM10/11/14
to est...@googlegroups.com
Clear. I only thought that diContainer will help me with that. Sorry I'm used to Nette :-) Thanks anyway :-)

Dne sobota, 11. října 2014 17:06:19 UTC+2 Daniel Steigerwald napsal(a):
Reply all
Reply to author
Forward
0 new messages