From 7e565657f12a74bdb852c6b2850724e0655e638b Mon Sep 17 00:00:00 2001 From: Aldarien Date: Fri, 13 Sep 2019 17:32:33 -0300 Subject: [PATCH] Source --- src/MySQLRequirements.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/MySQLRequirements.php diff --git a/src/MySQLRequirements.php b/src/MySQLRequirements.php new file mode 100644 index 0000000..5d1ff3e --- /dev/null +++ b/src/MySQLRequirements.php @@ -0,0 +1,25 @@ +host->name; + if (isset($config->host->port)) { + $dsn .= ';port=' . $config->host->port; + } + $dsn .= '; dbname=' . $config->database->name; + return $dsn; + } + public function hasUser(): bool { + return true; + } +}