diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-31 21:13:58 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-01 11:31:26 +0200 |
commit | cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2 (patch) | |
tree | 9f1f2a75dd81b96ff899f9b28a1788cc2d6b88e3 /lib/private/Updater.php | |
parent | 2be74ee175c4516320436c39e8cf49f9fe6f587b (diff) | |
download | nextcloud-server-cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2.tar.gz nextcloud-server-cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2.zip |
chore: Drop \OC_App::getAppVersion
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 56285166322..5a14bb17507 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -40,6 +40,7 @@ declare(strict_types=1); */ namespace OC; +use OCP\App\IAppManager; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventDispatcher; use OCP\HintException; @@ -355,9 +356,9 @@ class Updater extends BasicEmitter { $stack = $stacks[$type]; foreach ($stack as $appId) { if (\OC_App::shouldUpgrade($appId)) { - $this->emit('\OC\Updater', 'appUpgradeStarted', [$appId, \OC_App::getAppVersion($appId)]); + $this->emit('\OC\Updater', 'appUpgradeStarted', [$appId, \OCP\Server::get(IAppManager::class)->getAppVersion($appId)]); \OC_App::updateApp($appId); - $this->emit('\OC\Updater', 'appUpgrade', [$appId, \OC_App::getAppVersion($appId)]); + $this->emit('\OC\Updater', 'appUpgrade', [$appId, \OCP\Server::get(IAppManager::class)->getAppVersion($appId)]); } if ($type !== $pseudoOtherType) { // load authentication, filesystem and logging apps after |