Skip to content

Commit

Permalink
default
Browse files Browse the repository at this point in the history
  • Loading branch information
mathsgod committed Dec 28, 2020
1 parent 60f8c4b commit ff1233d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
return function ($context, $inject) {
$db = $this->config["database"];
$inject("db", new \R\DB\Schema($db["database"], $db["hostname"], $db["username"], $db["password"], $db["charset"], $db["port"]));
$rdb = new \R\DB\Schema($db["database"], $db["hostname"], $db["username"], $db["password"], $db["charset"] ?? "utf8mb4", $db["port"] ?? 3306);
$inject("db", $rdb);
};

0 comments on commit ff1233d

Please sign in to comment.