From fa4b42c6dd5a1ddb3bd181538e88933ec2088b6f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 25 Apr 2019 23:56:14 -0400 Subject: [PATCH] Move phpinfo module to src/Module/Admin --- mod/phpinfo.php | 14 -------------- src/App/Router.php | 2 ++ src/Module/Admin/PhpInfo.php | 16 ++++++++++++++++ src/Module/BaseAdminModule.php | 17 ++++++++++++++++- 4 files changed, 34 insertions(+), 15 deletions(-) delete mode 100644 mod/phpinfo.php create mode 100644 src/Module/Admin/PhpInfo.php diff --git a/mod/phpinfo.php b/mod/phpinfo.php deleted file mode 100644 index 3228d250ba..0000000000 --- a/mod/phpinfo.php +++ /dev/null @@ -1,14 +0,0 @@ -addRoute(['GET'] , '/logs/view' , Module\Admin\Logs\View::class); $collector->addRoute(['GET', 'POST'], '/logs' , Module\Admin\Logs\Settings::class); + $collector->addRoute(['GET'] , '/phpinfo' , Module\Admin\PhpInfo::class); + $collector->addRoute(['GET'] , '/queue[/deferred]' , Module\Admin\Queue::class); $collector->addRoute(['GET', 'POST'], '/site' , Module\Admin\Site::class); diff --git a/src/Module/Admin/PhpInfo.php b/src/Module/Admin/PhpInfo.php new file mode 100644 index 0000000000..2d0e9c1d5a --- /dev/null +++ b/src/Module/Admin/PhpInfo.php @@ -0,0 +1,16 @@ + ['admin/item/delete' , L10n::t('Delete Item') , 'deleteitem'], ]], 'logs' => [L10n::t('Logs'), [ - 'logsconfig' => ['admin/logs/', L10n::t('Logs') , 'logs'], + 'logsconfig' => ['admin/logs/', L10n::t('Logs') , 'logs'], 'logsview' => ['admin/logs/view' , L10n::t('View Logs') , 'viewlogs'], ]], 'diagnostics' => [L10n::t('Diagnostics'), [ + 'phpinfo' => ['admin/phpinfo' , L10n::t('PHP Info') , 'phpinfo'], 'itemsource' => ['admin/item/source' , L10n::t('Item Source') , 'itemsource'], ]], ]; -- 2.39.5