I have created a service where I need to read few parameters from parameters.yml, so far I am able to read parameters through container only, I have injected container into my service, I know it's not good practice to inject container instead I should be injecting required services/components,however I am not able to figure out the way to read parameters from parameters.yml without injecting container into service and then reading parameters with the help of container. Can you please guide me for an alternative solution?
EDIT:
I have a long list of parameters, around 12-15, I am storing rate limit options for API in parameters.yml so that they can be easily configured
Thanks.