diff options
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 62d5fd1c058..7d26fbebc4b 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -41,6 +41,7 @@ declare(strict_types=1); namespace OC; use OC\App\AppManager; +use OC\App\AppStore\Fetcher\AppFetcher; use OC\DB\Connection; use OC\DB\MigrationService; use OC\DB\MigratorExecuteSqlEvent; @@ -273,7 +274,7 @@ class Updater extends BasicEmitter { $this->doAppUpgrade(); // Update the appfetchers version so it downloads the correct list from the appstore - \OC::$server->getAppFetcher()->setVersion($currentVersion); + \OC::$server->get(AppFetcher::class)->setVersion($currentVersion); /** @var AppManager $appManager */ $appManager = \OC::$server->getAppManager(); |