aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-11-11 11:54:42 -0500
committerThedro Neely <thedroneely@gmail.com>2022-11-11 11:54:42 -0500
commit94506f031c348c3fd0e1f2bb33e8b88dc0d4659f (patch)
tree22b71d490445c7285dbaa3eec939391b6d327a96 /bootstrap
parentabdbac031912a395c7524ad0e6f5c70c918531b2 (diff)
downloadthedroneely.com-94506f031c348c3fd0e1f2bb33e8b88dc0d4659f.tar.gz
thedroneely.com-94506f031c348c3fd0e1f2bb33e8b88dc0d4659f.tar.bz2
thedroneely.com-94506f031c348c3fd0e1f2bb33e8b88dc0d4659f.zip
database: Swap to sqlite
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/database/Connection.php8
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());
}
}
}