[BUGFIX] Skip main extension repository check in Composer mode 79/51279/2
authorMathias Brodala <mbrodala@pagemachine.de>
Wed, 11 Jan 2017 14:41:36 +0000 (15:41 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 12 Jan 2017 06:48:17 +0000 (07:48 +0100)
Extensions are not installed and updated from the main extension
repository in Composer mode, thus skip this check completely.

Change-Id: If5bad978ed7eae92954198f9569a90effc123525
Resolves: #79277
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/51279
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/extensionmanager/Classes/Report/ExtensionStatus.php

index e694c2f..ffe2bdf 100644 (file)
@@ -14,6 +14,8 @@ namespace TYPO3\CMS\Extensionmanager\Report;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Core\Core\Bootstrap;
+
 /**
  * Extension status reports
  */
@@ -74,7 +76,10 @@ class ExtensionStatus implements \TYPO3\CMS\Reports\StatusProviderInterface
     public function getStatus()
     {
         $status = [];
-        $status['mainRepositoryStatus'] = $this->getMainRepositoryStatus();
+
+        if (!Bootstrap::usesComposerClassLoading()) {
+            $status['mainRepositoryStatus'] = $this->getMainRepositoryStatus();
+        }
 
         $extensionStatus = $this->getSecurityStatusOfExtensions();
         $status['extensionsSecurityStatusInstalled'] = $extensionStatus->loaded;