. */ 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 pending changes. */ class PendingChangesLogAction implements RequestHandlerInterface { /** * @param ServerRequestInterface $request * * @return ResponseInterface */ public function handle(ServerRequestInterface $request): ResponseInterface { $params = (array) $request->getParsedBody(); return redirect(route(PendingChangesLogPage::class, [ 'tree' => $params['tree'], 'from' => $params['from'] ?? '', 'to' => $params['to'] ?? '', 'type' => $params['type'] ?? '', 'oldged' => $params['oldged'] ?? '', 'newged' => $params['newged'] ?? '', 'xref' => $params['xref'] ?? '', 'username' => $params['username'] ?? '', ])); } }