SwitchUserTokenProcessor
extends AbstractTokenProcessor
in package
Adds the original security token to the log entry.
Tags
Table of Contents
- $tokenStorage : TokenStorageInterface
- __construct() : mixed
- __invoke() : array<string|int, mixed>
- getKey() : string
- getToken() : TokenInterface|null
Properties
$tokenStorage
protected
TokenStorageInterface
$tokenStorage
Methods
__construct()
public
__construct(TokenStorageInterface $tokenStorage) : mixed
Parameters
- $tokenStorage : TokenStorageInterface
Return values
mixed —__invoke()
public
__invoke(array<string|int, mixed> $record) : array<string|int, mixed>
Parameters
- $record : array<string|int, mixed>
Return values
array<string|int, mixed> —getKey()
protected
getKey() : string
Return values
string —getToken()
protected
getToken() : TokenInterface|null