Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Sets PDO as default engine
Browse files Browse the repository at this point in the history
  • Loading branch information
mithra62 committed Jul 5, 2016
1 parent 5ea8d99 commit 58c0df8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Bootstrap.php
Expand Up @@ -120,10 +120,9 @@ public function getServices()
$this->container['db'] = function ($c) {
$db = new Db();
$db->setCredentials($this->getDbConfig());
$type = 'pdo';
if( function_exists('mysqli_select_db'))
{
$type = 'mysqli';
$type = 'mysqli';
if(class_exists('Pdo')) {
$type = 'pdo';
}

$db->setAccessType($type);
Expand Down

0 comments on commit 58c0df8

Please sign in to comment.