Skip to content

Commit

Permalink
Add 'ssl' to DBProps connection configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed Aug 24, 2018
1 parent 65501b7 commit d95b29e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Service/DBProps.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class DBProps
*
* The constuctor sets the $dbtype class variable.
*
* @param string $db Database type, either 'mysql' or 'pgsql'.
* Defaults to 'mysql'.
* @param string $db Database type, one of
* 'mysql', 'mysqli', or 'pgsql'.
*/
public function __construct($db = 'mysql')
public function __construct($db)
{
$this->dbtype = $db;
}
Expand Down Expand Up @@ -135,6 +135,7 @@ public function getDBConnect()
);

$opts = array(
'ssl' => true,
'persistent' => true,
'portability' => DB_PORTABILITY_ALL
);
Expand Down

0 comments on commit d95b29e

Please sign in to comment.