summaryrefslogtreecommitdiff
path: root/src/DB.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/DB.php')
-rw-r--r--src/DB.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DB.php b/src/DB.php
index b536079..53d078b 100644
--- a/src/DB.php
+++ b/src/DB.php
@@ -5,9 +5,9 @@ namespace App;
class DB
{
use Singleton;
-
+
private \PDO $connection;
-
+
public function __construct()
{
$driver = $_ENV['DB_DRIVER'] ?? 'pgsql';
@@ -16,7 +16,7 @@ class DB
$dbname = $_ENV['DB_NAME'];
$user = $_ENV['DB_USER'];
$password = $_ENV['DB_PASSWORD'];
-
+
$this->connection = new \PDO("$driver:host=$host;port=$port;dbname=$dbname", $user, $password);
}
}