Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGenerator::__construct PHP Method

__construct() public method

Construct the code generator service.
public __construct ( Scheb\TwoFactorBundle\Model\PersisterInterface $persister, Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface $mailer, integer $digits )
$persister Scheb\TwoFactorBundle\Model\PersisterInterface
$mailer Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface
$digits integer
    public function __construct(PersisterInterface $persister, AuthCodeMailerInterface $mailer, $digits)
    {
        $this->persister = $persister;
        $this->mailer = $mailer;
        $this->digits = $digits;
    }