diff options
Diffstat (limited to 'WpfTest/Db.php')
| -rw-r--r-- | WpfTest/Db.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WpfTest/Db.php b/WpfTest/Db.php index 3de1011..799332f 100644 --- a/WpfTest/Db.php +++ b/WpfTest/Db.php @@ -9,7 +9,8 @@ class Db extends Singleton { private \PDO $conn; protected function __construct() { - $this->conn = new \PDO('pgsql:host=localhost;dbname=wpftest', 'wpftest', 'wpftest', [ + $conf = GlobalConfig::getInstance(); + $this->conn = new \PDO($conf->getDbConnection(), $conf->getDbUser(), $conf->getDbPassword(), [ \PDO::ATTR_PERSISTENT => true, ]); } |
