profiling.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <parameters>
  6. <parameter key="profiler.class">Symfony\Component\HttpKernel\Profiler\Profiler</parameter>
  7. <parameter key="profiler_listener.class">Symfony\Component\HttpKernel\EventListener\ProfilerListener</parameter>
  8. </parameters>
  9. <services>
  10. <service id="profiler" class="%profiler.class%">
  11. <tag name="monolog.logger" channel="profiler" />
  12. <argument type="service" id="profiler.storage" />
  13. <argument type="service" id="logger" on-invalid="null" />
  14. </service>
  15. <service id="profiler.storage" class="" public="false">
  16. <argument>%profiler.storage.dsn%</argument>
  17. <argument>%profiler.storage.username%</argument>
  18. <argument>%profiler.storage.password%</argument>
  19. <argument>%profiler.storage.lifetime%</argument>
  20. </service>
  21. <service id="profiler_listener" class="%profiler_listener.class%">
  22. <tag name="kernel.event_subscriber" />
  23. <argument type="service" id="profiler" />
  24. <argument type="service" id="request_stack" />
  25. <argument type="service" id="profiler.request_matcher" on-invalid="null" />
  26. <argument>%profiler_listener.only_exceptions%</argument>
  27. <argument>%profiler_listener.only_master_requests%</argument>
  28. </service>
  29. </services>
  30. </container>