Guzzle¶
The Symfony bundle comes with an integration for Guzzle that allows automatic retry of failed requests.
Configuration¶
First, you need to install the CsaGuzzleBundle.
Then you must enabled the bridge using the guzzle key:
1 2 | tolerance:
guzzle: true
|
Finally, just add the retries option in the configuration of your client:
1 2 3 4 5 | csa_guzzle:
clients:
my_client:
config:
retries: 2
|