Browse Source

Query the timefactory instead of creating it

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
tags/v11.0RC2
Lukas Reschke 7 years ago
parent
commit
df7fd2b57c
No account linked to committer's email address
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      lib/private/legacy/app.php
  2. 2
    2
      settings/Application.php

+ 1
- 1
lib/private/legacy/app.php View File

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

+ 2
- 2
settings/Application.php View File

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

Loading…
Cancel
Save