MailerInterface.php 867 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. }