Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (18 sloc) 617 Bytes

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:

tolerance:
    guzzle: true

Finally, just add the retries option in the configuration of your client:

csa_guzzle:
    clients:
        my_client:
            config:
                retries: 2