From 0e2f00ec59424b2ef5708a928856e2c75abe6deb Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 24 Nov 2017 10:27:58 +0100 Subject: Get the Installer via DI Signed-off-by: Morris Jobke --- settings/ajax/updateapp.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'settings') diff --git a/settings/ajax/updateapp.php b/settings/ajax/updateapp.php index 7b615cb56bb..3431c68dbd7 100644 --- a/settings/ajax/updateapp.php +++ b/settings/ajax/updateapp.php @@ -41,13 +41,7 @@ $appId = OC_App::cleanAppId($appId); $config = \OC::$server->getConfig(); $config->setSystemValue('maintenance', true); try { - $installer = new \OC\Installer( - \OC::$server->getAppFetcher(), - \OC::$server->getHTTPClientService(), - \OC::$server->getTempManager(), - \OC::$server->getLogger(), - \OC::$server->getConfig() - ); + $installer = \OC::$server->query(\OC\Installer::class); $result = $installer->updateAppstoreApp($appId); $config->setSystemValue('maintenance', false); } catch(Exception $ex) { -- cgit v1.2.3