IdentityHandler
interface IdentityHandler
Serializes and restores identity to/from persistent storage.
Methods
sleepIdentity(IIdentity $identity)
Called before identity is written to storage. Typically replaces the full identity with a lightweight token.
IIdentity|null
wakeupIdentity(IIdentity $identity)
Called after identity is read from storage. Typically refreshes roles or validates the token. Returns null to force logout.
Details
at line 20
IIdentity
sleepIdentity(IIdentity $identity)
Called before identity is written to storage. Typically replaces the full identity with a lightweight token.
at line 25
IIdentity|null
wakeupIdentity(IIdentity $identity)
Called after identity is read from storage. Typically refreshes roles or validates the token. Returns null to force logout.