2 declare(strict_types = 1);
19 use Psr\Http\Message\ServerRequestInterface;
47 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:sub.php.label'
59 'PHP_VERSION' => PHP_VERSION,
61 'PHP_SAPI' => PHP_SAPI,
62 'Peak Memory Usage' => GeneralUtility::formatSize(memory_get_peak_usage()),
64 'loadedExtensions' => implode(
', ', get_loaded_extensions()),
65 'constants' => get_defined_constants(
true),
75 $view = GeneralUtility::makeInstance(StandaloneView::class);
76 $templateNameAndPath =
'EXT:adminpanel/Resources/Private/Templates/Modules/Info/PhpInfo.html';
77 $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($templateNameAndPath));
78 $view->setPartialRootPaths([
'EXT:adminpanel/Resources/Private/Partials']);
80 $view->assignMultiple($data->getArrayCopy());
82 return $view->render();