]> source.dussan.org Git - nextcloud-server.git/commitdiff
Query the timefactory instead of creating it
authorLukas Reschke <lukas@statuscode.ch>
Fri, 28 Oct 2016 10:56:41 +0000 (12:56 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 31 Oct 2016 16:17:46 +0000 (17:17 +0100)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/legacy/app.php
settings/Application.php

index 876eb98f293d872062da3fc975160f5ce451fc47..43830b5fd198cc3d3c5d0cadce0b28928ebf5fa3 100644 (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(),
index 3dbf9acc5247eff2476e1001d38b9ced2839d542..d907cd666fb76ce41b1f0a4033aabd085c0845dd 100644 (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)
                        );
                });
        }