summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-26 23:54:11 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-26 23:54:11 +0200
commitaff5fe68b31c3663be2a114666650d2f8723a22b (patch)
treec5cf285d2f360ef4e44387d996dc89b6476b4d46 /lib/private/Server.php
parentb841a477c6b96a13ea061df3fc622c3067514bf2 (diff)
downloadnextcloud-server-aff5fe68b31c3663be2a114666650d2f8723a22b.tar.gz
nextcloud-server-aff5fe68b31c3663be2a114666650d2f8723a22b.zip
use SystemConfig, less dependencies, and not publicly needed
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index c744ba37ded..a879c65bb9b 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -548,7 +548,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService(\OCP\ILogger::class, function (Server $c) {
$logType = $c->query('AllConfig')->getSystemValue('log_type', 'file');
- $factory = new LogFactory($c);
+ $factory = new LogFactory($c, $this->getSystemConfig());
$logger = $factory->get($logType);
$registry = $c->query(\OCP\Support\CrashReport\IRegistry::class);
@@ -557,9 +557,8 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias('Logger', \OCP\ILogger::class);
$this->registerService(ILogFactory::class, function (Server $c) {
- return new LogFactory($c);
+ return new LogFactory($c, $this->getSystemConfig());
});
- $this->registerAlias('LogFactory', ILogFactory::class);
$this->registerService(\OCP\BackgroundJob\IJobList::class, function (Server $c) {
$config = $c->getConfig();
@@ -1539,7 +1538,7 @@ class Server extends ServerContainer implements IServerContainer {
* @throws \OCP\AppFramework\QueryException
*/
public function getLogFactory() {
- return $this->query('LogFactory');
+ return $this->query(ILogFactory::class);
}
/**