PHP Class Wallabag\UserBundle\Mailer\AuthCodeMailer

It adds a custom template to the email so user won't get a lonely authentication code but a complete email.
Inheritance: implements Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface
Mostra file Open project: wallabag/wallabag Class Usage Examples

Public Methods

Method Description
__construct ( Swift_Mailer $mailer, Twig_Environment $twig, string $senderEmail, string $senderName, string $supportUrl, string $wallabagUrl ) Initialize the auth code mailer with the SwiftMailer object.
sendAuthCode ( Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface $user ) Send the auth code to the user via email.

Method Details

__construct() public method

Initialize the auth code mailer with the SwiftMailer object.
public __construct ( Swift_Mailer $mailer, Twig_Environment $twig, string $senderEmail, string $senderName, string $supportUrl, string $wallabagUrl )
$mailer Swift_Mailer
$twig Twig_Environment
$senderEmail string
$senderName string
$supportUrl string wallabag support url
$wallabagUrl string wallabag instance url

sendAuthCode() public method

Send the auth code to the user via email.
public sendAuthCode ( Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface $user )
$user Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface