Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Change session manipulation methods from private to protected #1113

Merged
merged 2 commits into from
Jun 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
michalsn marked this conversation as resolved.
Show resolved Hide resolved
{
$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
michalsn marked this conversation as resolved.
Show resolved Hide resolved
{
$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
michalsn marked this conversation as resolved.
Show resolved Hide resolved
{
$sessionUserInfo = $this->getSessionUserInfo();
unset($sessionUserInfo[$key]);
Expand Down
Loading