2 namespace TYPO3\CMS\Backend\Backend\ToolbarItems;
101 $this->standaloneView->setTemplatePathAndFilename($extPath .
'Resources/Private/Templates/ToolbarMenu/' . static::TOOLBAR_MENU_TEMPLATE);
103 $this->
getPageRenderer()->loadRequireJsModule(
'TYPO3/CMS/Backend/Toolbar/SystemInformationMenu');
122 $this->emitLoadMessages();
139 $response = $response->
withHeader(
'Content-Type',
'text/html; charset=utf-8');
150 $this->systemInformation[] = array(
151 'title' => $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.phpversion',
true),
152 'value' => PHP_VERSION,
153 'icon' =>
'<span class="fa fa-code"></span>'
164 $this->systemInformation[] = array(
165 'title' => $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.database',
true),
167 'icon' =>
'<span class="fa fa-database"></span>'
179 $this->systemInformation[] = array(
180 'title' => $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.applicationcontext',
true),
181 'value' => (
string)$applicationContext,
183 'icon' =>
'<span class="fa fa-tasks"></span>'
197 $this->systemInformation[] = array(
198 'title' => $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.composerMode',
true),
199 'value' => $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.enabled',
true),
200 'icon' =>
'<span class="fa fa-music"></span>'
211 if (!
StringUtility::endsWith(TYPO3_version,
'-dev') || \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::isFunctionDisabled(
'exec')) {
216 if ((
int)$returnCode !== 0) {
223 if (!empty($revision) && !empty($branch)) {
224 $this->systemInformation[] = array(
225 'title' => $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.gitrevision',
true),
226 'value' => sprintf(
'%s [%s]', $revision, $branch),
227 'icon' =>
'<span class="fa fa-git"></span>'
239 $kernelName = php_uname(
's');
240 switch (strtolower($kernelName)) {
250 $this->systemInformation[] = array(
251 'title' => $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.operatingsystem',
true),
252 'value' => $kernelName .
' ' . php_uname(
'r'),
253 'icon' =>
'<span class="fa fa-' . htmlspecialchars($icon) .
'"></span>'
262 $this->systemInformation[] = array(
263 'title' => $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.webserver',
true),
264 'value' => htmlspecialchars($_SERVER[
'SERVER_SOFTWARE']),
265 'icon' =>
'<span class="fa fa-server"></span>'
288 protected function emitLoadMessages()
292 if (empty($message)) {
297 if (isset($message[
'count'])) {
298 $this->totalCount += (int)$message[
'count'];
304 if ($messageSeverity->isGreaterThan($this->highestSeverity)) {
305 $this->highestSeverity = $messageSeverity;
308 $this->systemMessages[] = $message;
328 $title = $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo',
true);
329 $icon = $this->iconFactory->getIcon(
'actions-system-list-open',
Icon::SIZE_SMALL)->render(
'inline');
330 return '<span title="' . $title .
'">' . $icon .
'<span id="t3js-systeminformation-counter" class="badge"></span></span>';
344 $request = $this->standaloneView->getRequest();
345 $request->setControllerExtensionName(
'backend');
346 $this->standaloneView->assignMultiple(array(
347 'installToolUrl' => BackendUtility::getModuleUrl(
'system_InstallInstall'),
348 'messages' => $this->systemMessages,
349 'count' => $this->totalCount,
350 'severityBadgeClass' => $this->severityBadgeClass,
351 'systemInformation' => $this->systemInformation
353 return $this->standaloneView->render();
433 if (!isset($this->signalSlotDispatcher)) {
435 ->get(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);