PHP 클래스 Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGenerator

상속: implements Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Email\Generator\CodeGeneratorInterface
파일 보기 프로젝트 열기: scheb/two-factor-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Scheb\TwoFactorBundle\Model\PersisterInterface $persister, Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface $mailer, integer $digits ) Construct the code generator service.
generateAndSend ( Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface $user ) Generate a new authentication code an send it to the user.

보호된 메소드들

메소드 설명
generateCode ( integer $min, integer $max ) : integer Generate authentication code.

메소드 상세

__construct() 공개 메소드

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

generateAndSend() 공개 메소드

Generate a new authentication code an send it to the user.
public generateAndSend ( Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface $user )
$user Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface

generateCode() 보호된 메소드

Generate authentication code.
protected generateCode ( integer $min, integer $max ) : integer
$min integer
$max integer
리턴 integer