Skip to content

Commit

Permalink
Database key qualification
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonvleite committed Apr 13, 2022
1 parent 658f02e commit acd0282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Connect
public static function getInstance(array $database = null): ?PDO
{
$dbConf = $database ?? DATA_LAYER_CONFIG;
$dbName = $dbConf["dbname"];

$dbName = "{$dbConf["driver"]}-{$dbConf["dbname"]}@{$dbConf["host"]}";
if (empty(self::$instance[$dbName])) {
try {
self::$instance[$dbName] = new PDO(
Expand Down

0 comments on commit acd0282

Please sign in to comment.