Copied!

BeforeGenerateTokenEvent

BeforeGenerateTokenEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeGenerateTokenEvent.php : 30
public __construct(string $type, int $ttl[, string|null $identifier = null ][, int $tokenLength = 64 ][, TokenGeneratorInterface|null $tokenGenerator = null ])

Parameters

Name Type Default value Description
$type string - -
$ttl int - -
$identifier string|null null -
$tokenLength int 64 -
$tokenGenerator TokenGeneratorInterface|null null -

publicgetIdentifier()

BeforeGenerateTokenEvent.php : 71
public getIdentifier() : string|null

Return values

string|null

publicgetToken()

BeforeGenerateTokenEvent.php : 44
public getToken() : Token

Return values

Token

publicgetTokenGenerator()

BeforeGenerateTokenEvent.php : 86
public getTokenGenerator() : TokenGeneratorInterface|null

Return values

TokenGeneratorInterface|null

publicgetTokenLength()

BeforeGenerateTokenEvent.php : 81
public getTokenLength() : int

Return values

int

publicgetTokenType()

BeforeGenerateTokenEvent.php : 66
public getTokenType() : string

Return values

string

publicgetTtl()

BeforeGenerateTokenEvent.php : 76
public getTtl() : int

Return values

int

publichasToken()

BeforeGenerateTokenEvent.php : 61
public hasToken() : bool

Return values

bool

publicsetToken()

BeforeGenerateTokenEvent.php : 56
public setToken(Token|null $token) : void

Parameters

Name Type Default value Description
$token Token|null - -