Skip to content

Commit

Permalink
change session manipulation methods from private to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed May 3, 2024
1 parent e7684c4 commit 817cfde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Authentication/Authenticators/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,15 +680,15 @@ public function startLogin(User $user): void
/**
* Gets User Info in Session
*/
private function getSessionUserInfo(): array
protected function getSessionUserInfo(): array
{
return session(setting('Auth.sessionConfig')['field']) ?? [];
}

/**
* Removes User Info in Session
*/
private function removeSessionUserInfo(): void
protected function removeSessionUserInfo(): void
{
session()->remove(setting('Auth.sessionConfig')['field']);
}
Expand All @@ -698,7 +698,7 @@ private function removeSessionUserInfo(): void
*
* @return int|string|null
*/
private function getSessionKey(string $key)
protected function getSessionKey(string $key)
{
$sessionUserInfo = $this->getSessionUserInfo();

Expand All @@ -710,7 +710,7 @@ private function getSessionKey(string $key)
*
* @param int|string|null $value
*/
private function setSessionKey(string $key, $value): void
protected function setSessionKey(string $key, $value): void
{
$sessionUserInfo = $this->getSessionUserInfo();
$sessionUserInfo[$key] = $value;
Expand All @@ -720,7 +720,7 @@ private function setSessionKey(string $key, $value): void
/**
* Remove the key value in Session User Info
*/
private function removeSessionKey(string $key): void
protected function removeSessionKey(string $key): void
{
$sessionUserInfo = $this->getSessionUserInfo();
unset($sessionUserInfo[$key]);
Expand Down

0 comments on commit 817cfde

Please sign in to comment.