Copied!

GenerateTokenEvent

GenerateTokenEvent.php : 15
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

GenerateTokenEvent.php : 29
public __construct(Token $token, string $tokenType, int $ttl[, string|null $identifier = null ][, int $tokenLength = 64 ][, TokenGeneratorInterface|null $tokenGenerator = null ])

Parameters

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

publicgetIdentifier()

GenerateTokenEvent.php : 55
public getIdentifier() : string|null

Return values

string|null

publicgetToken()

GenerateTokenEvent.php : 45
public getToken() : Token

Return values

Token

publicgetTokenGenerator()

GenerateTokenEvent.php : 70
public getTokenGenerator() : TokenGeneratorInterface|null

Return values

TokenGeneratorInterface|null

publicgetTokenLength()

GenerateTokenEvent.php : 65
public getTokenLength() : int

Return values

int

publicgetTokenType()

GenerateTokenEvent.php : 50
public getTokenType() : string

Return values

string

publicgetTtl()

GenerateTokenEvent.php : 60
public getTtl() : int

Return values

int