diff options
-rw-r--r-- | lib/private/legacy/app.php | 2 | ||||
-rw-r--r-- | settings/Application.php | 4 |
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) ); }); } |