summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-05-02 10:08:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-05-02 10:24:10 +0200
commite79424932a249b0e1568722ec0d709cd79a385ce (patch)
treeb3a5f9ec23d1252960662c3fa1515096fdded0ba /lib/private/Server.php
parent81ee0673a51ae2fe0a0b14420dce9e7337eb1425 (diff)
downloadnextcloud-server-e79424932a249b0e1568722ec0d709cd79a385ce.tar.gz
nextcloud-server-e79424932a249b0e1568722ec0d709cd79a385ce.zip
Make sure the AppFetcher fetches the new applist from the appstore
When in the upgrade process the version in the config is still the old version. (Since we only upgrade it after the upgrade is complete). However the app list fetched from the appstore must be the new list. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 6bc9a1429cd..07e449ee4a9 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -420,7 +420,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService('AppHelper', function ($c) {
return new \OC\AppHelper();
});
- $this->registerService('AppFetcher', function ($c) {
+ $this->registerService(AppFetcher::class, function ($c) {
return new AppFetcher(
$this->getAppDataDir('appstore'),
$this->getHTTPClientService(),
@@ -428,6 +428,8 @@ class Server extends ServerContainer implements IServerContainer {
$this->getConfig()
);
});
+ $this->registerAlias('AppFetcher', AppFetcher::class);
+
$this->registerService('CategoryFetcher', function ($c) {
return new CategoryFetcher(
$this->getAppDataDir('appstore'),
@@ -821,9 +823,6 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService(BundleFetcher::class, function () {
return new BundleFetcher($this->getL10N('lib'));
});
- $this->registerService(AppFetcher::class, function() {
- return $this->getAppFetcher();
- });
$this->registerService(\OCP\Notification\IManager::class, function (Server $c) {
return new Manager(
$c->query(IValidator::class)