templating.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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="templating.engine.delegating.class">Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine</parameter>
  7. <parameter key="templating.name_parser.class">Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser</parameter>
  8. <parameter key="templating.filename_parser.class">Symfony\Bundle\FrameworkBundle\Templating\TemplateFilenameParser</parameter>
  9. <parameter key="templating.cache_warmer.template_paths.class">Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer</parameter>
  10. <parameter key="templating.locator.class">Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator</parameter>
  11. <parameter key="templating.loader.filesystem.class">Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader</parameter>
  12. <parameter key="templating.loader.cache.class">Symfony\Component\Templating\Loader\CacheLoader</parameter>
  13. <parameter key="templating.loader.chain.class">Symfony\Component\Templating\Loader\ChainLoader</parameter>
  14. <parameter key="templating.finder.class">Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder</parameter>
  15. <parameter key="templating.helper.assets.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper</parameter>
  16. <parameter key="templating.helper.router.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper</parameter>
  17. </parameters>
  18. <services>
  19. <service id="templating.engine.delegating" class="%templating.engine.delegating.class%" public="false">
  20. <argument type="service" id="service_container" />
  21. <argument type="collection" /> <!-- engines -->
  22. </service>
  23. <service id="templating.name_parser" class="%templating.name_parser.class%">
  24. <argument type="service" id="kernel" />
  25. </service>
  26. <service id="templating.filename_parser" class="%templating.filename_parser.class%" />
  27. <service id="templating.locator" class="%templating.locator.class%" public="false">
  28. <argument type="service" id="file_locator" />
  29. <argument>%kernel.cache_dir%</argument>
  30. </service>
  31. <service id="templating.finder" class="%templating.finder.class%" public="false">
  32. <argument type="service" id="kernel" />
  33. <argument type="service" id="templating.filename_parser" />
  34. <argument>%kernel.root_dir%/Resources</argument>
  35. </service>
  36. <service id="templating.cache_warmer.template_paths" class="%templating.cache_warmer.template_paths.class%" public="false">
  37. <tag name="kernel.cache_warmer" priority="20" />
  38. <argument type="service" id="templating.finder" />
  39. <argument type="service" id="templating.locator" />
  40. </service>
  41. <service id="templating.loader.filesystem" class="%templating.loader.filesystem.class%" public="false">
  42. <argument type="service" id="templating.locator" />
  43. </service>
  44. <service id="templating.loader.cache" class="%templating.loader.cache.class%" public="false">
  45. <argument type="service" id="templating.loader.wrapped" />
  46. <argument>%templating.loader.cache.path%</argument>
  47. </service>
  48. <service id="templating.loader.chain" class="%templating.loader.chain.class%" public="false">
  49. </service>
  50. <service id="templating.loader" alias="templating.loader.filesystem" />
  51. <!--
  52. The following services will be moved to templating_php.xml in version 3.0, they exist here for BC reasons.
  53. -->
  54. <service id="templating.helper.assets" class="%templating.helper.assets.class%">
  55. <tag name="templating.helper" alias="assets" />
  56. <argument /> <!-- default package -->
  57. <argument type="collection" /> <!-- named packages -->
  58. </service>
  59. <service id="templating.helper.router" class="%templating.helper.router.class%">
  60. <tag name="templating.helper" alias="router" />
  61. <argument type="service" id="router" />
  62. </service>
  63. </services>
  64. </container>