[BUGFIX] Undefined method in extension manager 77/30777/2
authorOliver Hader <oliver@typo3.org>
Tue, 17 Jun 2014 13:35:14 +0000 (15:35 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 17 Jun 2014 14:05:15 +0000 (16:05 +0200)
PHP fatal error due to the invalid call to non-existing method
ExtensionManagementService::resolveDependenciesAndInstall during
upgrading an existing extension to a newer version from TER.

Resolves: #59624
Releases: 6.2
Change-Id: I84ff3685a94625cbc94af1967ac65b61cf9f5e43
Reviewed-on: https://review.typo3.org/30777
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/extensionmanager/Classes/Controller/DownloadController.php
typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php

index 66153a0..7fe59e0 100644 (file)
@@ -182,10 +182,9 @@ class DownloadController extends AbstractController {
                $result = array();
 
                $extensionKey = $this->request->getArgument('extension');
-               /** @var Extension $highestTerVersionExtension */
                $highestTerVersionExtension = $this->extensionRepository->findHighestAvailableVersion($extensionKey);
                try {
-                       $result = $this->managementService->resolveDependenciesAndInstall($highestTerVersionExtension);
+                       $result = $this->managementService->installExtension($highestTerVersionExtension);
                } catch (\Exception $e) {
                        $hasErrors = TRUE;
                        $errorMessage = $e->getMessage();
index 9f181e9..c507264 100644 (file)
@@ -258,7 +258,7 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
         * Find highest version available of an extension
         *
         * @param string $extensionKey
-        * @return object
+        * @return \TYPO3\CMS\Extensionmanager\Domain\Model\Extension
         */
        public function findHighestAvailableVersion($extensionKey) {
                $query = $this->createQuery();