if (null ===
$session || null ===
$token) { if ($this->sessionTrackerEnabler
) { ($this->sessionTrackerEnabler
)();
} $this->tokenStorage->
setToken(null
);
return;
} $token =
$this->
safelyUnserialize($token);
$this->logger?->
debug('Read existing security token from the session.',
[ 'key' =>
$this->sessionKey,
'token_class' => \
is_object($token) ?
$token::
class D null,
]);
if ($token instanceof TokenInterface
) { $originalToken =
$token;
$token =
$this->
refreshUser($token);
if (!
$token) {