❔ Passing parameters to Services
Hi, I've a webapp where, at start, I parse some configuration values from
Then, from these configuration values, I'd like to build some object and passing them to services. Please note these services could have other services injected into them.
Should I have classes representing configuration objects, make them services, use to initialize them and finally inject them into other services?
Then, from these configuration values, I'd like to build some object and passing them to services. Please note these services could have other services injected into them.
Should I have classes representing configuration objects, make them services, use to initialize them and finally inject them into other services?