summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/Connection.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-28 13:48:58 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-11-02 20:30:37 +0100
commit2c4035e80679b6ebf8e56d86f88701f3ddb65bec (patch)
treea1bd0571d1bc4eab25ad28f4120bfae4582de637 /lib/private/DB/Connection.php
parentcd13f50a3f1fbcae757672b4a471d8fbcf959b08 (diff)
downloadnextcloud-server-2c4035e80679b6ebf8e56d86f88701f3ddb65bec.tar.gz
nextcloud-server-2c4035e80679b6ebf8e56d86f88701f3ddb65bec.zip
Inject config and logger
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB/Connection.php')
-rw-r--r--lib/private/DB/Connection.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index dfe2e86b617..497ff0c8a26 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -67,7 +67,11 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
* @return \OCP\DB\QueryBuilder\IQueryBuilder
*/
public function getQueryBuilder() {
- return new QueryBuilder($this);
+ return new QueryBuilder(
+ $this,
+ \OC::$server->getSystemConfig(),
+ \OC::$server->getLogger()
+ );
}
/**