. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; /** * Show logs. */ class SiteLogsAction implements RequestHandlerInterface { /** * @param ServerRequestInterface $request * * @return ResponseInterface */ public function handle(ServerRequestInterface $request): ResponseInterface { $params = (array) $request->getParsedBody(); return redirect(route(SiteLogsPage::class, [ 'tree' => $params['tree'], 'from' => $params['from'] ?? '', 'to' => $params['to'] ?? '', 'type' => $params['type'] ?? '', 'text' => $params['text'] ?? '', 'ip' => $params['ip'] ?? '', 'username' => $params['username'] ?? '', ])); } }