summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-28 12:56:41 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-31 17:17:46 +0100
commitdf7fd2b57cb211b3a6a9febdca4ab0a21baed19d (patch)
treeb57f03275964f29d54b3351e542565400f02710f /settings
parent3e6dd86ee4d22b2cdb7f8403b3939c7839698c48 (diff)
downloadnextcloud-server-df7fd2b57cb211b3a6a9febdca4ab0a21baed19d.tar.gz
nextcloud-server-df7fd2b57cb211b3a6a9febdca4ab0a21baed19d.zip
Query the timefactory instead of creating it
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'settings')
-rw-r--r--settings/Application.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/Application.php b/settings/Application.php
index 3dbf9acc524..d907cd666fb 100644
--- a/settings/Application.php
+++ b/settings/Application.php
@@ -96,7 +96,7 @@ class Application extends App {
return new AppFetcher(
$server->getAppDataDir('appstore'),
$server->getHTTPClientService(),
- new TimeFactory(),
+ $server->query(TimeFactory::class),
$server->getConfig()
);
});
@@ -106,7 +106,7 @@ class Application extends App {
return new CategoryFetcher(
$server->getAppDataDir('appstore'),
$server->getHTTPClientService(),
- new TimeFactory()
+ $server->query(TimeFactory::class)
);
});
}