<?xml version="1.0" encoding="utf-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:framework="http://symfony.com/schema/dic/symfony"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
        http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

    <framework:config http-method-override="false" handle-all-throwables="true">
        <framework:annotations enabled="false" />
        <framework:php-errors log="true" />
        <framework:http-client>
            <framework:default-options>
                <framework:retry-failed
                        delay="100"
                        max-delay="0"
                        max-retries="2"
                        multiplier="2"
                        jitter="0.3">
                    <framework:http-code code="429"/>
                    <framework:http-code code="500">
                        <framework:method>GET</framework:method>
                        <framework:method>HEAD</framework:method>
                    </framework:http-code>
                </framework:retry-failed>
            </framework:default-options>
            <framework:scoped-client name="foo" base-uri="http://example.com">
                <framework:retry-failed multiplier="4"/>
            </framework:scoped-client>
        </framework:http-client>
    </framework:config>
</container>
