diff options
author | Andrew Summers <18727110+summersab@users.noreply.github.com> | 2023-08-29 17:00:22 -0500 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-23 15:43:46 +0100 |
commit | f461c79c5853cc9a7fa11f217c1831f97bd6320c (patch) | |
tree | 8b9af42eaa75cf297a1ebdacc4c94dc270f30763 /lib/private/Updater.php | |
parent | a88c1bdfb61d4c141d90e6864971f6d456417604 (diff) | |
download | nextcloud-server-f461c79c5853cc9a7fa11f217c1831f97bd6320c.tar.gz nextcloud-server-f461c79c5853cc9a7fa11f217c1831f97bd6320c.zip |
Refactor `OC\Server::getAppFetcher`
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
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(); |