Skip to content

Commit 817cfde

Browse files
committed
change session manipulation methods from private to protected
1 parent e7684c4 commit 817cfde

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Authentication/Authenticators/Session.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,15 +680,15 @@ public function startLogin(User $user): void
680680
/**
681681
* Gets User Info in Session
682682
*/
683-
private function getSessionUserInfo(): array
683+
protected function getSessionUserInfo(): array
684684
{
685685
return session(setting('Auth.sessionConfig')['field']) ?? [];
686686
}
687687

688688
/**
689689
* Removes User Info in Session
690690
*/
691-
private function removeSessionUserInfo(): void
691+
protected function removeSessionUserInfo(): void
692692
{
693693
session()->remove(setting('Auth.sessionConfig')['field']);
694694
}
@@ -698,7 +698,7 @@ private function removeSessionUserInfo(): void
698698
*
699699
* @return int|string|null
700700
*/
701-
private function getSessionKey(string $key)
701+
protected function getSessionKey(string $key)
702702
{
703703
$sessionUserInfo = $this->getSessionUserInfo();
704704

@@ -710,7 +710,7 @@ private function getSessionKey(string $key)
710710
*
711711
* @param int|string|null $value
712712
*/
713-
private function setSessionKey(string $key, $value): void
713+
protected function setSessionKey(string $key, $value): void
714714
{
715715
$sessionUserInfo = $this->getSessionUserInfo();
716716
$sessionUserInfo[$key] = $value;
@@ -720,7 +720,7 @@ private function setSessionKey(string $key, $value): void
720720
/**
721721
* Remove the key value in Session User Info
722722
*/
723-
private function removeSessionKey(string $key): void
723+
protected function removeSessionKey(string $key): void
724724
{
725725
$sessionUserInfo = $this->getSessionUserInfo();
726726
unset($sessionUserInfo[$key]);

0 commit comments

Comments
 (0)