diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-06 15:58:19 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-22 12:19:01 +0200 |
commit | 733a81813946d3d00bb403f6f4afaa1f177003a6 (patch) | |
tree | 65307f344a2beee120d625dab7817452e95dd4e9 /lib/private/Installer.php | |
parent | 0e7bac72ae9e6096fe79c460bc2ef963619aa226 (diff) | |
download | nextcloud-server-733a81813946d3d00bb403f6f4afaa1f177003a6.tar.gz nextcloud-server-733a81813946d3d00bb403f6f4afaa1f177003a6.zip |
fix: Migrate a few more classes away from OC_App::getAppPath
Also fixed AppTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r-- | lib/private/Installer.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index 6ab497b9dea..c4af480d4ca 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -560,12 +560,13 @@ class Installer { if ($output instanceof IOutput) { $output->debug('Installing ' . $app); } - //install the database - $appPath = OC_App::getAppPath($app); - \OC_App::registerAutoloading($app, $appPath); + $appManager = \OCP\Server::get(IAppManager::class); $config = \OCP\Server::get(IConfig::class); + $appPath = $appManager->getAppPath($app); + \OC_App::registerAutoloading($app, $appPath); + $ms = new MigrationService($app, \OCP\Server::get(Connection::class)); if ($output instanceof IOutput) { $ms->setOutput($output); |