summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/LoginAction.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-12-24 13:15:40 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-12-24 13:15:40 +0000
commit9f91568f2fcb7b00bc1905f576ad6fa871bf749e (patch)
tree0a4a261994946330c1b1f26dbe8874fde4a57493 /app/Http/RequestHandlers/LoginAction.php
parentb477f3177bfa02cd9fa87032e176f6773b0c8ef8 (diff)
downloadwebtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.tar.gz
webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.tar.bz2
webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.zip
CodeStyle
Diffstat (limited to 'app/Http/RequestHandlers/LoginAction.php')
-rw-r--r--app/Http/RequestHandlers/LoginAction.php28
1 files changed, 5 insertions, 23 deletions
diff --git a/app/Http/RequestHandlers/LoginAction.php b/app/Http/RequestHandlers/LoginAction.php
index a320524c10..7a65f26a54 100644
--- a/app/Http/RequestHandlers/LoginAction.php
+++ b/app/Http/RequestHandlers/LoginAction.php
@@ -36,32 +36,14 @@ use Psr\Http\Server\RequestHandlerInterface;
use function route;
use function time;
-/**
- * Perform a login.
- */
-class LoginAction implements RequestHandlerInterface
+final class LoginAction implements RequestHandlerInterface
{
- private UpgradeService $upgrade_service;
-
- private UserService $user_service;
-
- /**
- * @param UpgradeService $upgrade_service
- * @param UserService $user_service
- */
- public function __construct(UpgradeService $upgrade_service, UserService $user_service)
- {
- $this->upgrade_service = $upgrade_service;
- $this->user_service = $user_service;
+ public function __construct(
+ private readonly UpgradeService $upgrade_service,
+ private readonly UserService $user_service,
+ ) {
}
- /**
- * Perform a login.
- *
- * @param ServerRequestInterface $request
- *
- * @return ResponseInterface
- */
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->treeOptional();