summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/ConnectionFactory.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-09 17:25:12 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-10-19 00:15:01 +0200
commita7245ea08284568f9a449a11b726048dcec06d4a (patch)
tree59bef83ed9e579f93d0aaf342663b701952177a4 /lib/private/DB/ConnectionFactory.php
parent296a3274cf9fccc5fea1f067bb5cb9cc71450734 (diff)
downloadnextcloud-server-a7245ea08284568f9a449a11b726048dcec06d4a.tar.gz
nextcloud-server-a7245ea08284568f9a449a11b726048dcec06d4a.zip
Fixing ctor call
Diffstat (limited to 'lib/private/DB/ConnectionFactory.php')
-rw-r--r--lib/private/DB/ConnectionFactory.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php
index a7aae32f670..8a1ed60b257 100644
--- a/lib/private/DB/ConnectionFactory.php
+++ b/lib/private/DB/ConnectionFactory.php
@@ -28,7 +28,7 @@ namespace OC\DB;
use Doctrine\DBAL\Event\Listeners\OracleSessionInit;
use Doctrine\DBAL\Event\Listeners\SQLSessionInit;
use Doctrine\DBAL\Event\Listeners\MysqlSessionInit;
-use OC\SystemConfig;
+use OCP\IConfig;
/**
* Takes care of creating and configuring Doctrine connections.
@@ -65,8 +65,8 @@ class ConnectionFactory {
),
);
- public function __construct(SystemConfig $systemConfig) {
- if($systemConfig->getValue('mysql.utf8mb4', false)) {
+ public function __construct(IConfig $config) {
+ if($config->getSystemValue('mysql.utf8mb4', false)) {
$defaultConnectionParams['mysql']['charset'] = 'utf8mb4';
}
}