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

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().