[FOLLOWUP][BUGFIX] Add reload parameter for EM List Utility 45/44345/3
authorNicole Cordes <typo3@cordes.co>
Thu, 29 Oct 2015 09:43:53 +0000 (10:43 +0100)
committerNicole Cordes <typo3@cordes.co>
Thu, 29 Oct 2015 10:32:20 +0000 (11:32 +0100)
Cleanup some code concerning the extension list reload.

Resolves: #71071
Releases: master
Change-Id: I0fdd1e918a23b41e08583541aea504ead8f67319
Reviewed-on: https://review.typo3.org/44345
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php
typo3/sysext/install/Classes/Updates/AbstractDownloadExtensionUpdate.php

index 2354358..89bfc9b 100644 (file)
@@ -129,6 +129,7 @@ class ListUtility implements \TYPO3\CMS\Core\SingletonInterface
      */
     public function reloadAvailableExtensions() {
         $this->availableExtensions = null;
+        $this->packageManager->scanAvailablePackages();
         $this->getAvailableExtensions();
     }
 
index cfa1ebe..27793cd 100644 (file)
@@ -88,10 +88,7 @@ abstract class AbstractDownloadExtensionUpdate extends AbstractUpdate
             $extensionFileHandlingUtility = $objectManager->get(FileHandlingUtility::class);
             $extensionFileHandlingUtility->unpackExtensionFromExtensionDataArray($t3xExtracted);
 
-            // the list utility now needs to have the regenerated list of packages
-            /** @var PackageManager $packageManager */
-            $packageManager = $objectManager->get(PackageManager::class);
-            $packageManager->scanAvailablePackages();
+            // The listUtility now needs to have the regenerated list of packages
             $extensionListUtility->reloadAvailableExtensions();
         }