This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
Decide on if the service wrapper should return a shared instance or new instances #1
Labels
enhancement
New feature or request
Given:
$uat_client
will still contain the original configuration. This is because services are shared by default with Symfony: https://symfony.com/doc/current/service_container/shared.htmlIt's easy enough to change configuration after the client has been requested:
This makes difficult to work with two separate clients at once. It also may pose problems in the future if something changes around the config system.
It can be mitigated by manually creating the Client object without using the service. It would be helpful to have a client factory service that could spin of instances per environment.
The text was updated successfully, but these errors were encountered: