routing.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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="router.class">Symfony\Bundle\FrameworkBundle\Routing\Router</parameter>
  7. <parameter key="router.request_context.class">Symfony\Component\Routing\RequestContext</parameter>
  8. <parameter key="routing.loader.class">Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader</parameter>
  9. <parameter key="routing.resolver.class">Symfony\Component\Config\Loader\LoaderResolver</parameter>
  10. <parameter key="routing.loader.xml.class">Symfony\Component\Routing\Loader\XmlFileLoader</parameter>
  11. <parameter key="routing.loader.yml.class">Symfony\Component\Routing\Loader\YamlFileLoader</parameter>
  12. <parameter key="routing.loader.php.class">Symfony\Component\Routing\Loader\PhpFileLoader</parameter>
  13. <parameter key="router.options.generator_class">Symfony\Component\Routing\Generator\UrlGenerator</parameter>
  14. <parameter key="router.options.generator_base_class">Symfony\Component\Routing\Generator\UrlGenerator</parameter>
  15. <parameter key="router.options.generator_dumper_class">Symfony\Component\Routing\Generator\Dumper\PhpGeneratorDumper</parameter>
  16. <parameter key="router.options.matcher_class">Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher</parameter>
  17. <parameter key="router.options.matcher_base_class">Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher</parameter>
  18. <parameter key="router.options.matcher_dumper_class">Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper</parameter>
  19. <parameter key="router.cache_warmer.class">Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer</parameter>
  20. <parameter key="router.options.matcher.cache_class">%router.cache_class_prefix%UrlMatcher</parameter>
  21. <parameter key="router.options.generator.cache_class">%router.cache_class_prefix%UrlGenerator</parameter>
  22. <parameter key="router_listener.class">Symfony\Component\HttpKernel\EventListener\RouterListener</parameter>
  23. <parameter key="router.request_context.host">localhost</parameter>
  24. <parameter key="router.request_context.scheme">http</parameter>
  25. <parameter key="router.request_context.base_url"></parameter>
  26. </parameters>
  27. <services>
  28. <service id="routing.resolver" class="%routing.resolver.class%" public="false" />
  29. <service id="routing.loader.xml" class="%routing.loader.xml.class%" public="false">
  30. <tag name="routing.loader" />
  31. <argument type="service" id="file_locator" />
  32. </service>
  33. <service id="routing.loader.yml" class="%routing.loader.yml.class%" public="false">
  34. <tag name="routing.loader" />
  35. <argument type="service" id="file_locator" />
  36. </service>
  37. <service id="routing.loader.php" class="%routing.loader.php.class%" public="false">
  38. <tag name="routing.loader" />
  39. <argument type="service" id="file_locator" />
  40. </service>
  41. <service id="routing.loader.directory" class="Symfony\Component\Routing\Loader\DirectoryLoader" public="false">
  42. <tag name="routing.loader" />
  43. <argument type="service" id="file_locator" />
  44. </service>
  45. <service id="routing.loader.service" class="Symfony\Component\Routing\Loader\DependencyInjection\ServiceRouterLoader" public="false">
  46. <tag name="routing.loader" />
  47. <argument type="service" id="service_container" />
  48. </service>
  49. <service id="routing.loader" class="%routing.loader.class%">
  50. <argument type="service" id="controller_name_converter" />
  51. <argument type="service" id="routing.resolver" />
  52. </service>
  53. <service id="router.default" class="%router.class%" public="false">
  54. <argument type="service" id="service_container" />
  55. <argument>%router.resource%</argument>
  56. <argument type="collection">
  57. <argument key="cache_dir">%kernel.cache_dir%</argument>
  58. <argument key="debug">%kernel.debug%</argument>
  59. <argument key="generator_class">%router.options.generator_class%</argument>
  60. <argument key="generator_base_class">%router.options.generator_base_class%</argument>
  61. <argument key="generator_dumper_class">%router.options.generator_dumper_class%</argument>
  62. <argument key="generator_cache_class">%router.options.generator.cache_class%</argument>
  63. <argument key="matcher_class">%router.options.matcher_class%</argument>
  64. <argument key="matcher_base_class">%router.options.matcher_base_class%</argument>
  65. <argument key="matcher_dumper_class">%router.options.matcher_dumper_class%</argument>
  66. <argument key="matcher_cache_class">%router.options.matcher.cache_class%</argument>
  67. </argument>
  68. <argument type="service" id="router.request_context" on-invalid="ignore" />
  69. <call method="setConfigCacheFactory">
  70. <argument type="service" id="config_cache_factory" />
  71. </call>
  72. </service>
  73. <service id="router" alias="router.default" />
  74. <service id="router.request_context" class="%router.request_context.class%" public="false">
  75. <argument>%router.request_context.base_url%</argument>
  76. <argument>GET</argument>
  77. <argument>%router.request_context.host%</argument>
  78. <argument>%router.request_context.scheme%</argument>
  79. <argument>%request_listener.http_port%</argument>
  80. <argument>%request_listener.https_port%</argument>
  81. </service>
  82. <service id="router.cache_warmer" class="%router.cache_warmer.class%" public="false">
  83. <tag name="kernel.cache_warmer" />
  84. <argument type="service" id="router" />
  85. </service>
  86. <service id="router_listener" class="%router_listener.class%">
  87. <tag name="kernel.event_subscriber" />
  88. <tag name="monolog.logger" channel="request" />
  89. <argument type="service" id="router" />
  90. <argument type="service" id="request_stack" />
  91. <argument type="service" id="router.request_context" on-invalid="ignore" />
  92. <argument type="service" id="logger" on-invalid="ignore" />
  93. </service>
  94. </services>
  95. </container>