17 lines
539 B
PHP
17 lines
539 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use MintyPHP\Buffer;
|
||
|
|
use MintyPHP\Service\Access\OperationsAuthorizationPolicy;
|
||
|
|
use MintyPHP\Service\System\SystemInfoService;
|
||
|
|
use MintyPHP\Support\Guard;
|
||
|
|
|
||
|
|
Guard::requireAbilityOrForbidden(OperationsAuthorizationPolicy::ABILITY_ADMIN_SYSTEM_INFO_VIEW);
|
||
|
|
|
||
|
|
$pageData = app(SystemInfoService::class)->buildPageData();
|
||
|
|
$overview = $pageData['overview'] ?? [];
|
||
|
|
$modules = $pageData['modules'] ?? [];
|
||
|
|
$permissions = $pageData['permissions'] ?? [];
|
||
|
|
$healthChecks = $overview['health_checks'] ?? [];
|
||
|
|
|
||
|
|
Buffer::set('title', t('System Info'));
|