MailerInterface.php 867B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the FOSUserBundle package.
  4. *
  5. * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace FOS\UserBundle\Mailer;
  11. use FOS\UserBundle\Model\UserInterface;
  12. /**
  13. * @author Thibault Duplessis <thibault.duplessis@gmail.com>
  14. */
  15. interface MailerInterface
  16. {
  17. /**
  18. * Send an email to a user to confirm the account creation
  19. *
  20. * @param UserInterface $user
  21. *
  22. * @return void
  23. */
  24. public function sendConfirmationEmailMessage(UserInterface $user);
  25. /**
  26. * Send an email to a user to confirm the password reset
  27. *
  28. * @param UserInterface $user
  29. *
  30. * @return void
  31. */
  32. public function sendResettingEmailMessage(UserInterface $user);
  33. }