aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--lib/private/legacy/app.php2
-rw-r--r--settings/Application.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 876eb98f293..43830b5fd19 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -350,7 +350,7 @@ class OC_App {
new \OC\App\AppStore\Fetcher\AppFetcher(
\OC::$server->getAppDataDir('appstore'),
\OC::$server->getHTTPClientService(),
- new \OC\AppFramework\Utility\TimeFactory(),
+ \OC::$server->query(\OC\AppFramework\Utility\TimeFactory::class),
$config
),
\OC::$server->getHTTPClientService(),
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)
);
});
}