NoopMailer.php 814B

1234567891011121314151617181920212223242526272829303132333435
  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. * This mailer does nothing.
  14. * It is used when the 'email' configuration is not set,
  15. * and allows to use this bundle without swiftmailer.
  16. *
  17. * @author Thibault Duplessis <thibault.duplessis@gmail.com>
  18. */
  19. class NoopMailer implements MailerInterface
  20. {
  21. public function sendConfirmationEmailMessage(UserInterface $user)
  22. {
  23. // nothing happens.
  24. }
  25. public function sendResettingEmailMessage(UserInterface $user)
  26. {
  27. // nothing happens.
  28. }
  29. }