summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/ConnectionFactory.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 23:16:13 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-29 12:03:47 +0100
commiteb51f06a3b9e42686f462b9f7a56411d3fe6cb27 (patch)
tree0d96c86c4489b4e3fe60bcceaeb6759d856a36e9 /lib/private/DB/ConnectionFactory.php
parent1d8b90b8d3c8a85104d223b7f1d5693280370774 (diff)
downloadnextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.tar.gz
nextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.zip
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/DB/ConnectionFactory.php')
-rw-r--r--lib/private/DB/ConnectionFactory.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php
index fcb0117a0db..c841a36bb5a 100644
--- a/lib/private/DB/ConnectionFactory.php
+++ b/lib/private/DB/ConnectionFactory.php
@@ -46,26 +46,26 @@ class ConnectionFactory {
*/
protected $defaultConnectionParams = [
'mysql' => [
- 'adapter' => '\OC\DB\AdapterMySQL',
+ 'adapter' => AdapterMySQL::class,
'charset' => 'UTF8',
'driver' => 'pdo_mysql',
- 'wrapperClass' => 'OC\DB\Connection',
+ 'wrapperClass' => Connection::class,
],
'oci' => [
- 'adapter' => '\OC\DB\AdapterOCI8',
+ 'adapter' => AdapterOCI8::class,
'charset' => 'AL32UTF8',
'driver' => 'oci8',
- 'wrapperClass' => 'OC\DB\OracleConnection',
+ 'wrapperClass' => OracleConnection::class,
],
'pgsql' => [
- 'adapter' => '\OC\DB\AdapterPgSql',
+ 'adapter' => AdapterPgSql::class,
'driver' => 'pdo_pgsql',
- 'wrapperClass' => 'OC\DB\Connection',
+ 'wrapperClass' => Connection::class,
],
'sqlite3' => [
- 'adapter' => '\OC\DB\AdapterSqlite',
+ 'adapter' => AdapterSqlite::class,
'driver' => 'pdo_sqlite',
- 'wrapperClass' => 'OC\DB\Connection',
+ 'wrapperClass' => Connection::class,
],
];