From: Lukas Reschke Date: Fri, 28 Oct 2016 10:56:41 +0000 (+0200) Subject: Query the timefactory instead of creating it X-Git-Tag: v11.0RC2~332^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df7fd2b57cb211b3a6a9febdca4ab0a21baed19d;p=nextcloud-server.git Query the timefactory instead of creating it Signed-off-by: Lukas Reschke --- 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) ); }); }