Commit 720bc8dc authored by Patrick Schriner's avatar Patrick Schriner Committed by Helmut Hummel
Browse files

[TASK] Add composer mode to the application information panel

Resolves: #70518
Releases: master
Change-Id: If1144e6de80161df08ec4664fbce827d070571cb
Reviewed-on: http://review.typo3.org/43909


Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
parent dc3191e1
...@@ -19,6 +19,7 @@ use Psr\Http\Message\ServerRequestInterface; ...@@ -19,6 +19,7 @@ use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface; use TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface;
use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus; use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus;
use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Core\Bootstrap;
use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Page\PageRenderer; use TYPO3\CMS\Core\Page\PageRenderer;
...@@ -113,6 +114,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface ...@@ -113,6 +114,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
$this->getPhpVersion(); $this->getPhpVersion();
$this->getDatabase(); $this->getDatabase();
$this->getApplicationContext(); $this->getApplicationContext();
$this->getClassLoaderMode();
$this->getGitRevision(); $this->getGitRevision();
$this->getOperatingSystem(); $this->getOperatingSystem();
...@@ -182,6 +184,23 @@ class SystemInformationToolbarItem implements ToolbarItemInterface ...@@ -182,6 +184,23 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
); );
} }
/**
* Adds the class loading mode (Composer/TYPO3) to the displayed systen information
*
* @return void
*/
protected function getClassLoaderMode()
{
$languageService = $this->getLanguageService();
$this->systemInformation[] = array(
'title' => $languageService->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.composerMode', true),
'value' => Bootstrap::usesComposerClassLoading()
? $languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.enabled', true)
: $languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.disabled', true),
'icon' => '<span class="fa fa-music"></span>'
);
}
/** /**
* Gets the current GIT revision and branch * Gets the current GIT revision and branch
* *
......
...@@ -181,6 +181,9 @@ Do you want to continue WITHOUT saving?</source> ...@@ -181,6 +181,9 @@ Do you want to continue WITHOUT saving?</source>
<trans-unit id="labels.enabled"> <trans-unit id="labels.enabled">
<source>Enabled</source> <source>Enabled</source>
</trans-unit> </trans-unit>
<trans-unit id="labels.disabled">
<source>Disabled</source>
</trans-unit>
<trans-unit id="labels.show"> <trans-unit id="labels.show">
<source>Show</source> <source>Show</source>
</trans-unit> </trans-unit>
...@@ -1182,6 +1185,9 @@ Do you want to refresh it now?</source> ...@@ -1182,6 +1185,9 @@ Do you want to refresh it now?</source>
<trans-unit id="toolbarItems.sysinfo.applicationcontext"> <trans-unit id="toolbarItems.sysinfo.applicationcontext">
<source>Application Context</source> <source>Application Context</source>
</trans-unit> </trans-unit>
<trans-unit id="toolbarItems.sysinfo.composerMode">
<source>Composer mode</source>
</trans-unit>
<trans-unit id="toolbarItems.sysinfo.gitrevision"> <trans-unit id="toolbarItems.sysinfo.gitrevision">
<source>GIT Revision</source> <source>GIT Revision</source>
</trans-unit> </trans-unit>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment