<?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 https://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <defaults public="false" />

        <service id="profiler" class="Symfony\Component\HttpKernel\Profiler\Profiler" public="true">
            <tag name="monolog.logger" channel="profiler" />
            <argument type="service" id="profiler.storage" />
            <argument type="service" id="logger" on-invalid="null" />
        </service>

        <service id="profiler.storage" class="Symfony\Component\HttpKernel\Profiler\FileProfilerStorage">
            <argument>%profiler.storage.dsn%</argument>
        </service>

        <service id="profiler_listener" class="Symfony\Component\HttpKernel\EventListener\ProfilerListener">
            <tag name="kernel.event_subscriber" />
            <argument type="service" id="profiler" />
            <argument type="service" id="request_stack" />
            <argument type="service" id="profiler.request_matcher" on-invalid="null" />
            <argument>%profiler_listener.only_exceptions%</argument>
            <argument>%profiler_listener.only_master_requests%</argument>
        </service>
    </services>
</container>
