mailer.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  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="fos_user.resetting.email.template">FOSUserBundle:Resetting:email.txt.twig</parameter>
  7. <parameter key="fos_user.registration.confirmation.template">FOSUserBundle:Registration:email.txt.twig</parameter>
  8. </parameters>
  9. <services>
  10. <service id="fos_user.mailer.default" class="FOS\UserBundle\Mailer\Mailer" public="false">
  11. <argument type="service" id="mailer" />
  12. <argument type="service" id="router" />
  13. <argument type="service" id="templating" />
  14. <argument type="collection">
  15. <argument key="confirmation.template">%fos_user.registration.confirmation.template%</argument>
  16. <argument key="resetting.template">%fos_user.resetting.email.template%</argument>
  17. <argument key="from_email" type="collection">
  18. <argument key="confirmation">%fos_user.registration.confirmation.from_email%</argument>
  19. <argument key="resetting">%fos_user.resetting.email.from_email%</argument>
  20. </argument>
  21. </argument>
  22. </service>
  23. <service id="fos_user.mailer.twig_swift" class="FOS\UserBundle\Mailer\TwigSwiftMailer" public="false">
  24. <argument type="service" id="mailer" />
  25. <argument type="service" id="router" />
  26. <argument type="service" id="twig" />
  27. <argument type="collection">
  28. <argument key="template" type="collection">
  29. <argument key="confirmation">%fos_user.registration.confirmation.template%</argument>
  30. <argument key="resetting">%fos_user.resetting.email.template%</argument>
  31. </argument>
  32. <argument key="from_email" type="collection">
  33. <argument key="confirmation">%fos_user.registration.confirmation.from_email%</argument>
  34. <argument key="resetting">%fos_user.resetting.email.from_email%</argument>
  35. </argument>
  36. </argument>
  37. </service>
  38. <service id="fos_user.mailer.noop" class="FOS\UserBundle\Mailer\NoopMailer" public="false" />
  39. </services>
  40. </container>