diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-11-18 17:04:50 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-11-18 17:53:31 -0500 |
commit | de6f5e2be5dfbd2c55dd689439f46363649ae747 (patch) | |
tree | 7d76e309a3f27c850a178107cb92b0e978ae6ed7 /bootstrap | |
parent | 6aa5d8a6b09b60ac819ca90059e07e4e9cb7844d (diff) | |
download | edwinmattiacci.com-de6f5e2be5dfbd2c55dd689439f46363649ae747.tar.gz edwinmattiacci.com-de6f5e2be5dfbd2c55dd689439f46363649ae747.tar.bz2 edwinmattiacci.com-de6f5e2be5dfbd2c55dd689439f46363649ae747.zip |
bootstrap/database/Connection: Swap to sqlite
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/database/Connection.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap/database/Connection.php b/bootstrap/database/Connection.php index deec2c6..3093d85 100644 --- a/bootstrap/database/Connection.php +++ b/bootstrap/database/Connection.php @@ -2,17 +2,17 @@ class Connection { - public static function make($config) + public static function make(array $config) { try { return new PDO( - $config['connection'].';dbname='.$config['name'], + $config['dsn'], $config['username'], $config['password'], $config['options'] ); - } catch (PDOException $e) { - error_log($e->getMessage()); + } catch (PDOException $error) { + error_log($error->getMessage()); } } } |