Released version 3.2.4
-
Guest identity – an
IdentityHandlerauthenticator may now implementgetGuestIdentity(): ?IIdentityto hand anonymous visitors a real identity. When present,getIdentity(),getId()andgetRoles()transparently fall back to it, so guests carry their own roles and data instead of just the$guestRolestring. The guest identity is resolved on read only and never written to storage. -
$persistIdentity – the new
User::$persistIdentityproperty lets you decide what happens to the identity after logout or expiration. It stays available for personalization by default; flip it tofalseandgetIdentity()/getId()returnnullonce the user is no longer logged in. Configurable straight from thesecurity.authenticationDI section. -
SessionStorage no longer refreshes the sliding expiration timestamp once the session has already expired – an expired identity stays expired instead of being silently kept alive for another round
-
Adopted
nette/phpstan-rulesand made static analysis a mandatory part of the build, then resolved the errors it surfaced -
Improved phpDoc types and descriptions across the codebase