From 1e438654005bd408447dc19c8a96099d228bb1aa Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Thu, 16 Mar 2023 01:09:44 +0200 Subject: working on user management --- core/classes/authentication/Token/UserToken.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/classes/authentication/Token') diff --git a/core/classes/authentication/Token/UserToken.php b/core/classes/authentication/Token/UserToken.php index 6ce2eb6..520d4ad 100644 --- a/core/classes/authentication/Token/UserToken.php +++ b/core/classes/authentication/Token/UserToken.php @@ -15,16 +15,28 @@ class UserToken implements UserTokenInterface */ private $user; + public function __construct(UserInterface $user) { $this->user = $user; } + + /** getUser + * + */ public function getUser(): UserInterface { return $this->user; } + + /** serialize() + * + * serializes the user structure (with user's property values) + * ... then it will be saved into session[DEFAULT_PREFIX_KEY] + * + */ public function serialize(): string { return serialize($this); -- cgit v1.2.3