Query the timefactory instead of creating it

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2016-10-28 12:56:41 +02:00
父節點 3e6dd86ee4
當前提交 df7fd2b57c
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: B9F6980CF6E759B1
共有 2 個檔案被更改,包括 3 行新增3 行删除

查看文件

@ -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(),

查看文件

@ -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)
);
});
}