web.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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="controller_resolver.class">Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver</parameter>
  7. <parameter key="controller_name_converter.class">Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser</parameter>
  8. <parameter key="response_listener.class">Symfony\Component\HttpKernel\EventListener\ResponseListener</parameter>
  9. <parameter key="streamed_response_listener.class">Symfony\Component\HttpKernel\EventListener\StreamedResponseListener</parameter>
  10. <parameter key="locale_listener.class">Symfony\Component\HttpKernel\EventListener\LocaleListener</parameter>
  11. </parameters>
  12. <services>
  13. <service id="controller_name_converter" class="%controller_name_converter.class%" public="false">
  14. <tag name="monolog.logger" channel="request" />
  15. <argument type="service" id="kernel" />
  16. </service>
  17. <service id="controller_resolver" class="%controller_resolver.class%" public="false">
  18. <tag name="monolog.logger" channel="request" />
  19. <argument type="service" id="service_container" />
  20. <argument type="service" id="controller_name_converter" />
  21. <argument type="service" id="logger" on-invalid="ignore" />
  22. </service>
  23. <service id="response_listener" class="%response_listener.class%">
  24. <tag name="kernel.event_subscriber" />
  25. <argument>%kernel.charset%</argument>
  26. </service>
  27. <service id="streamed_response_listener" class="%streamed_response_listener.class%">
  28. <tag name="kernel.event_subscriber" />
  29. </service>
  30. <service id="locale_listener" class="%locale_listener.class%">
  31. <tag name="kernel.event_subscriber" />
  32. <argument type="service" id="request_stack" />
  33. <argument>%kernel.default_locale%</argument>
  34. <argument type="service" id="router" on-invalid="ignore" />
  35. </service>
  36. <service id="translator_listener" class="Symfony\Component\HttpKernel\EventListener\TranslatorListener">
  37. <argument type="service" id="translator" />
  38. <argument type="service" id="request_stack" />
  39. <tag name="kernel.event_subscriber" />
  40. </service>
  41. <service id="validate_request_listener" class="Symfony\Component\HttpKernel\EventListener\ValidateRequestListener">
  42. <tag name="kernel.event_subscriber" />
  43. </service>
  44. </services>
  45. </container>