Skip to content

Commit 1eadf80

Browse files
PavelWeirichdg
authored andcommitted
User: added method refreshStorage() to clear identity cache. (#46) (#50)
1 parent 636652e commit 1eadf80

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Security/User.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ public function getId()
158158
}
159159

160160

161+
final public function refreshStorage(): void
162+
{
163+
$this->identity = $this->authenticated = null;
164+
}
165+
166+
161167
/**
162168
* Sets authentication handler.
163169
* @return static

0 commit comments

Comments
 (0)