How to create several instances of service within application #8774
Unanswered
invissiblecat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a service that interacts with given variables called
provider
andaddress
. Development came to the point where I have severalprovider
andaddress
values, and for each of them I need to activate the same service. Is there any elegant ways to do so? How do I create some instances of service, pass arguments to the constructor and use needed instance in for example controllers?Beta Was this translation helpful? Give feedback.
All reactions