summaryrefslogtreecommitdiffstats
path: root/src/Psecio/Gatekeeper/DataSource
diff options
context:
space:
mode:
Diffstat (limited to 'src/Psecio/Gatekeeper/DataSource')
-rw-r--r--src/Psecio/Gatekeeper/DataSource/Mysql.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Psecio/Gatekeeper/DataSource/Mysql.php b/src/Psecio/Gatekeeper/DataSource/Mysql.php
index b27f387..07ec6d8 100644
--- a/src/Psecio/Gatekeeper/DataSource/Mysql.php
+++ b/src/Psecio/Gatekeeper/DataSource/Mysql.php
@@ -31,12 +31,8 @@ class Mysql extends \Psecio\Gatekeeper\DataSource
*/
public function buildPdo(array $config)
{
- $dbType = 'mysql';
- if (extension_loaded('mysqli') === true) {
- $dbType = 'mysqli';
- }
return new \PDO(
- $dbType.':dbname='.$config['name'].';host='.$config['host'].';charset=utf8',
+ 'mysql:dbname='.$config['name'].';host='.$config['host'].';charset=utf8',
$config['username'], $config['password']
);
}