<?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_http_cache.event_listener.flash_message"
                 class="FOS\HttpCacheBundle\EventListener\FlashMessageListener">
            <argument type="service" id="session" on-invalid="null"/><!-- legacy support, we take the session from the request otherwise -->
            <argument>%fos_http_cache.event_listener.flash_message.options%</argument>
            <tag name="kernel.event_subscriber" />
        </service>
    </services>
</container>
