1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

chore: change private to protected, allowing extensibility (#4119)

This commit is contained in:
IanM
2024-11-19 17:24:02 +00:00
committed by GitHub
parent a0b9add2d8
commit d61c3cf277

View File

@@ -62,7 +62,7 @@ class ResponseFactory
));
}
private function makeResponse(array $payload): HtmlResponse
protected function makeResponse(array $payload): HtmlResponse
{
$content = sprintf(
'<script>window.close(); window.opener.app.authenticationComplete(%s);</script>',
@@ -72,7 +72,7 @@ class ResponseFactory
return new HtmlResponse($content);
}
private function makeLoggedInResponse(User $user)
protected function makeLoggedInResponse(User $user)
{
$response = $this->makeResponse(['loggedIn' => true]);