templating_php.xml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.php.class">Symfony\Bundle\FrameworkBundle\Templating\PhpEngine</parameter>
  7. <parameter key="templating.helper.slots.class">Symfony\Component\Templating\Helper\SlotsHelper</parameter>
  8. <parameter key="templating.helper.actions.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\ActionsHelper</parameter>
  9. <parameter key="templating.helper.request.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\RequestHelper</parameter>
  10. <parameter key="templating.helper.session.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper</parameter>
  11. <parameter key="templating.helper.code.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\CodeHelper</parameter>
  12. <parameter key="templating.helper.translator.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper</parameter>
  13. <parameter key="templating.helper.form.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\FormHelper</parameter>
  14. <parameter key="templating.helper.stopwatch.class">Symfony\Bundle\FrameworkBundle\Templating\Helper\StopwatchHelper</parameter>
  15. <parameter key="templating.form.engine.class">Symfony\Component\Form\Extension\Templating\TemplatingRendererEngine</parameter>
  16. <parameter key="templating.form.renderer.class">Symfony\Component\Form\FormRenderer</parameter>
  17. <parameter key="templating.globals.class">Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables</parameter>
  18. </parameters>
  19. <services>
  20. <service id="templating.engine.php" class="%templating.engine.php.class%" public="false">
  21. <argument type="service" id="templating.name_parser" />
  22. <argument type="service" id="service_container" />
  23. <argument type="service" id="templating.loader" />
  24. <argument type="service" id="templating.globals" />
  25. <call method="setCharset"><argument>%kernel.charset%</argument></call>
  26. </service>
  27. <service id="templating.helper.slots" class="%templating.helper.slots.class%">
  28. <tag name="templating.helper" alias="slots" />
  29. </service>
  30. <service id="templating.helper.request" class="%templating.helper.request.class%">
  31. <tag name="templating.helper" alias="request" />
  32. <argument type="service" id="request_stack" />
  33. </service>
  34. <service id="templating.helper.session" class="%templating.helper.session.class%">
  35. <tag name="templating.helper" alias="session" />
  36. <argument type="service" id="request_stack" />
  37. </service>
  38. <service id="templating.helper.actions" class="%templating.helper.actions.class%">
  39. <tag name="templating.helper" alias="actions" />
  40. <argument type="service" id="fragment.handler" />
  41. </service>
  42. <service id="templating.helper.code" class="%templating.helper.code.class%">
  43. <tag name="templating.helper" alias="code" />
  44. <argument>%templating.helper.code.file_link_format%</argument>
  45. <argument>%kernel.root_dir%</argument>
  46. <argument>%kernel.charset%</argument>
  47. </service>
  48. <service id="templating.helper.translator" class="%templating.helper.translator.class%">
  49. <tag name="templating.helper" alias="translator" />
  50. <argument type="service" id="translator" />
  51. </service>
  52. <service id="templating.helper.form" class="%templating.helper.form.class%">
  53. <tag name="templating.helper" alias="form" />
  54. <argument type="service" id="templating.form.renderer" />
  55. </service>
  56. <service id="templating.helper.stopwatch" class="%templating.helper.stopwatch.class%">
  57. <tag name="templating.helper" alias="stopwatch" />
  58. <argument type="service" id="debug.stopwatch" on-invalid="ignore" />
  59. </service>
  60. <service id="templating.form.engine" class="%templating.form.engine.class%" public="false">
  61. <argument type="service" id="templating.engine.php" />
  62. <argument>%templating.helper.form.resources%</argument>
  63. </service>
  64. <service id="templating.form.renderer" class="%templating.form.renderer.class%" public="false">
  65. <argument type="service" id="templating.form.engine" />
  66. <argument type="service" id="security.csrf.token_manager" on-invalid="null" />
  67. </service>
  68. <service id="templating.globals" class="%templating.globals.class%">
  69. <argument type="service" id="service_container" />
  70. </service>
  71. </services>
  72. </container>