vendor/bundles/FOS/UserBundle/Mailer/NoopMailer.php
changeset 3 e54dfe4d0b2b
equal deleted inserted replaced
2:806e57d67020 3:e54dfe4d0b2b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the FOSUserBundle package.
       
     5  *
       
     6  * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
       
     7  *
       
     8  * For the full copyright and license information, please view the LICENSE
       
     9  * file that was distributed with this source code.
       
    10  */
       
    11 
       
    12 namespace FOS\UserBundle\Mailer;
       
    13 
       
    14 use FOS\UserBundle\Model\UserInterface;
       
    15 
       
    16 /**
       
    17  * This mailer does nothing.
       
    18  * It is used when the 'email' configuration is not set,
       
    19  * and allows to use this bundle without swiftmailer.
       
    20  *
       
    21  * @author Thibault Duplessis <thibault.duplessis@gmail.com>
       
    22  */
       
    23 class NoopMailer implements MailerInterface
       
    24 {
       
    25     public function sendConfirmationEmailMessage(UserInterface $user)
       
    26     {
       
    27         // nothing happens.
       
    28     }
       
    29 
       
    30     public function sendResettingEmailMessage(UserInterface $user)
       
    31     {
       
    32         // nothing happens.
       
    33     }
       
    34 }