19f667ff2SGreg Roach<?php 29f667ff2SGreg Roach 39f667ff2SGreg Roach/** 49f667ff2SGreg Roach * webtrees: online genealogy 5*89f7189bSGreg Roach * Copyright (C) 2021 webtrees development team 69f667ff2SGreg Roach * This program is free software: you can redistribute it and/or modify 79f667ff2SGreg Roach * it under the terms of the GNU General Public License as published by 89f667ff2SGreg Roach * the Free Software Foundation, either version 3 of the License, or 99f667ff2SGreg Roach * (at your option) any later version. 109f667ff2SGreg Roach * This program is distributed in the hope that it will be useful, 119f667ff2SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 129f667ff2SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 139f667ff2SGreg Roach * GNU General Public License for more details. 149f667ff2SGreg Roach * You should have received a copy of the GNU General Public License 15*89f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 169f667ff2SGreg Roach */ 179f667ff2SGreg Roach 189f667ff2SGreg Roachdeclare(strict_types=1); 199f667ff2SGreg Roach 209f667ff2SGreg Roachnamespace Fisharebest\Webtrees\Http\RequestHandlers; 219f667ff2SGreg Roach 229f667ff2SGreg Roachuse Fisharebest\Webtrees\I18N; 239f667ff2SGreg Roachuse Fisharebest\Webtrees\Module\ModuleHistoricEventsInterface; 249f667ff2SGreg Roachuse Psr\Http\Message\ResponseInterface; 259f667ff2SGreg Roachuse Psr\Http\Message\ServerRequestInterface; 269f667ff2SGreg Roach 279f667ff2SGreg Roachuse function view; 289f667ff2SGreg Roach 299f667ff2SGreg Roach/** 309f667ff2SGreg Roach * Show a list of modules. 319f667ff2SGreg Roach */ 329f667ff2SGreg Roachclass ModulesHistoricEventsPage extends AbstractModuleComponentPage 339f667ff2SGreg Roach{ 349f667ff2SGreg Roach /** 359f667ff2SGreg Roach * @param ServerRequestInterface $request 369f667ff2SGreg Roach * 379f667ff2SGreg Roach * @return ResponseInterface 389f667ff2SGreg Roach */ 399f667ff2SGreg Roach public function handle(ServerRequestInterface $request): ResponseInterface 409f667ff2SGreg Roach { 419f667ff2SGreg Roach return $this->listComponents( 429f667ff2SGreg Roach ModuleHistoricEventsInterface::class, 439f667ff2SGreg Roach view('icons/history') . I18N::translate('Historic events'), 449f667ff2SGreg Roach '' 459f667ff2SGreg Roach ); 469f667ff2SGreg Roach } 479f667ff2SGreg Roach} 48