xref: /webtrees/app/Http/RequestHandlers/ModulesReportsPage.php (revision d11be7027e34e3121be11cc025421873364403f9)
19f667ff2SGreg Roach<?php
29f667ff2SGreg Roach
39f667ff2SGreg Roach/**
49f667ff2SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 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
1589f7189bSGreg 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\ModuleReportInterface;
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 ModulesReportsPage 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            ModuleReportInterface::class,
4335a8a96dSGreg Roach            view('icons/report') . ' ' . I18N::translate('Reports'),
449f667ff2SGreg Roach            ''
459f667ff2SGreg Roach        );
469f667ff2SGreg Roach    }
479f667ff2SGreg Roach}
48