summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/PendingChanges.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/PendingChanges.php
parentb477f3177bfa02cd9fa87032e176f6773b0c8ef8 (diff)
downloadwebtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.tar.gz
webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.tar.bz2
webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.zip
CodeStyle
Diffstat (limited to 'app/Http/RequestHandlers/PendingChanges.php')
-rw-r--r--app/Http/RequestHandlers/PendingChanges.php21
1 files changed, 4 insertions, 17 deletions
diff --git a/app/Http/RequestHandlers/PendingChanges.php b/app/Http/RequestHandlers/PendingChanges.php
index fa84e4a3c5..4e0f325687 100644
--- a/app/Http/RequestHandlers/PendingChanges.php
+++ b/app/Http/RequestHandlers/PendingChanges.php
@@ -29,31 +29,18 @@ use Psr\Http\Server\RequestHandlerInterface;
use function route;
-/**
- * Show all pending changes.
- */
-class PendingChanges implements RequestHandlerInterface
+final class PendingChanges implements RequestHandlerInterface
{
use ViewResponseTrait;
// Some servers may not have enough resources to show all the changes.
private const int MAX_CHANGES = 1000;
- private PendingChangesService $pending_changes_service;
-
- /**
- * @param PendingChangesService $pending_changes_service
- */
- public function __construct(PendingChangesService $pending_changes_service)
- {
- $this->pending_changes_service = $pending_changes_service;
+ public function __construct(
+ private readonly PendingChangesService $pending_changes_service,
+ ) {
}
- /**
- * @param ServerRequestInterface $request
- *
- * @return ResponseInterface
- */
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();