<?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="api_platform.http_cache.processor.add_headers" class="ApiPlatform\HttpCache\State\AddHeadersProcessor" decorates="api_platform.state_processor.respond">
            <argument type="service" id="api_platform.http_cache.processor.add_headers.inner" />
            <argument>%api_platform.http_cache.etag%</argument>
            <argument>%api_platform.http_cache.max_age%</argument>
            <argument>%api_platform.http_cache.shared_max_age%</argument>
            <argument>%api_platform.http_cache.vary%</argument>
            <argument>%api_platform.http_cache.public%</argument>
        </service>
    </services>
</container>
