<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>

        <service id="fos_rest.converter.request_body" class="%fos_rest.converter.request_body.class%">
            <argument type="service" id="fos_rest.serializer"/>
            <argument>%fos_rest.serializer.exclusion_strategy.groups%</argument>
            <argument>%fos_rest.serializer.exclusion_strategy.version%</argument>
            <argument type="service" id="fos_rest.validator" on-invalid="ignore" />
            <argument>%fos_rest.converter.request_body.validation_errors_argument%</argument>
            <tag name="request.param_converter" converter="fos_rest.request_body" />
        </service>

    </services>
</container>
