collectors.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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="data_collector.config.class">Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector</parameter>
  7. <parameter key="data_collector.request.class">Symfony\Component\HttpKernel\DataCollector\RequestDataCollector</parameter>
  8. <parameter key="data_collector.exception.class">Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector</parameter>
  9. <parameter key="data_collector.events.class">Symfony\Component\HttpKernel\DataCollector\EventDataCollector</parameter>
  10. <parameter key="data_collector.logger.class">Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector</parameter>
  11. <parameter key="data_collector.time.class">Symfony\Component\HttpKernel\DataCollector\TimeDataCollector</parameter>
  12. <parameter key="data_collector.memory.class">Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector</parameter>
  13. <parameter key="data_collector.router.class">Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector</parameter>
  14. </parameters>
  15. <services>
  16. <service id="data_collector.config" class="%data_collector.config.class%" public="false">
  17. <tag name="data_collector" template="@WebProfiler/Collector/config.html.twig" id="config" priority="-255" />
  18. <call method="setKernel"><argument type="service" id="kernel" on-invalid="ignore" /></call>
  19. </service>
  20. <service id="data_collector.request" class="%data_collector.request.class%">
  21. <tag name="kernel.event_subscriber" />
  22. <tag name="data_collector" template="@WebProfiler/Collector/request.html.twig" id="request" priority="335" />
  23. </service>
  24. <service id="data_collector.ajax" class="Symfony\Component\HttpKernel\DataCollector\AjaxDataCollector" public="false">
  25. <tag name="data_collector" template="@WebProfiler/Collector/ajax.html.twig" id="ajax" priority="315" />
  26. </service>
  27. <service id="data_collector.exception" class="%data_collector.exception.class%" public="false">
  28. <tag name="data_collector" template="@WebProfiler/Collector/exception.html.twig" id="exception" priority="305" />
  29. </service>
  30. <service id="data_collector.events" class="%data_collector.events.class%" public="false">
  31. <tag name="data_collector" template="@WebProfiler/Collector/events.html.twig" id="events" priority="290" />
  32. <argument type="service" id="debug.event_dispatcher" on-invalid="ignore" />
  33. </service>
  34. <service id="data_collector.logger" class="%data_collector.logger.class%" public="false">
  35. <tag name="data_collector" template="@WebProfiler/Collector/logger.html.twig" id="logger" priority="300" />
  36. <tag name="monolog.logger" channel="profiler" />
  37. <argument type="service" id="logger" on-invalid="ignore" />
  38. </service>
  39. <service id="data_collector.time" class="%data_collector.time.class%" public="false">
  40. <tag name="data_collector" template="@WebProfiler/Collector/time.html.twig" id="time" priority="330" />
  41. <argument type="service" id="kernel" on-invalid="ignore" />
  42. <argument type="service" id="debug.stopwatch" on-invalid="ignore" />
  43. </service>
  44. <service id="data_collector.memory" class="%data_collector.memory.class%" public="false">
  45. <tag name="data_collector" template="@WebProfiler/Collector/memory.html.twig" id="memory" priority="325" />
  46. </service>
  47. <service id="data_collector.router" class="%data_collector.router.class%" >
  48. <tag name="kernel.event_listener" event="kernel.controller" method="onKernelController"/>
  49. <tag name="data_collector" template="@WebProfiler/Collector/router.html.twig" id="router" priority="285" />
  50. </service>
  51. </services>
  52. </container>