diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2025-12-24 13:15:40 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2025-12-24 13:15:40 +0000 |
| commit | 9f91568f2fcb7b00bc1905f576ad6fa871bf749e (patch) | |
| tree | 0a4a261994946330c1b1f26dbe8874fde4a57493 /app/Http/RequestHandlers/SiteLogsDownload.php | |
| parent | b477f3177bfa02cd9fa87032e176f6773b0c8ef8 (diff) | |
| download | webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.tar.gz webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.tar.bz2 webtrees-9f91568f2fcb7b00bc1905f576ad6fa871bf749e.zip | |
CodeStyle
Diffstat (limited to 'app/Http/RequestHandlers/SiteLogsDownload.php')
| -rw-r--r-- | app/Http/RequestHandlers/SiteLogsDownload.php | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/app/Http/RequestHandlers/SiteLogsDownload.php b/app/Http/RequestHandlers/SiteLogsDownload.php index eec74fa1c1..ed97c52efe 100644 --- a/app/Http/RequestHandlers/SiteLogsDownload.php +++ b/app/Http/RequestHandlers/SiteLogsDownload.php @@ -28,26 +28,13 @@ use Psr\Http\Server\RequestHandlerInterface; use function str_replace; -/** - * Download logs. - */ -class SiteLogsDownload implements RequestHandlerInterface +final class SiteLogsDownload implements RequestHandlerInterface { - private SiteLogsService $site_logs_service; - - /** - * @param SiteLogsService $site_logs_service - */ - public function __construct(SiteLogsService $site_logs_service) - { - $this->site_logs_service = $site_logs_service; + public function __construct( + private readonly SiteLogsService $site_logs_service, + ) { } - /** - * @param ServerRequestInterface $request - * - * @return ResponseInterface - */ public function handle(ServerRequestInterface $request): ResponseInterface { $content = $this->site_logs_service->logsQuery($request) |
