From 64ef1a47387b0d0ded17d5f4d0723b8211012769 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 27 Aug 2020 20:43:10 -0400 Subject: AppConfigBuild.php -> config.php --- AppConfigBuild.php | 21 --------------------- bootstrap/Bootstrap.php | 2 +- bootstrap/Functions.php | 2 +- config.php | 21 +++++++++++++++++++++ 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 AppConfigBuild.php create mode 100644 config.php diff --git a/AppConfigBuild.php b/AppConfigBuild.php deleted file mode 100644 index 0e83ebe..0000000 --- a/AppConfigBuild.php +++ /dev/null @@ -1,21 +0,0 @@ - [ - 'name' => 'pgsql_database', - 'username' => 'pgsql_username', - 'password' => 'pgsql_password', - 'connection' => 'pgsql:', - 'options' => [ - PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION - ] - ], - - 'mail' => [ - 'host' => 'email_host', - 'port' => 'email_port', - 'name' => 'email_name', - 'username' => 'email_username', - 'password' => 'email_password', - ] -]; diff --git a/bootstrap/Bootstrap.php b/bootstrap/Bootstrap.php index f6f1a54..5064db4 100644 --- a/bootstrap/Bootstrap.php +++ b/bootstrap/Bootstrap.php @@ -7,7 +7,7 @@ require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php'; require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Functions.php'; /* source config file */ -$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php'; +$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/config.php'; /* database connect */ $contact['database'] = new QueryBuilder(Connection::make($config['database'])); diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php index 47008c3..09f5649 100644 --- a/bootstrap/Functions.php +++ b/bootstrap/Functions.php @@ -7,7 +7,7 @@ use PHPMailer\PHPMailer\Exception; function sendMail($name, $email, $message) { // Require mail config - $config = include '../AppConfig.php'; + $config = include '../config.php'; $mail = new PHPMailer(true); try { diff --git a/config.php b/config.php new file mode 100644 index 0000000..0e83ebe --- /dev/null +++ b/config.php @@ -0,0 +1,21 @@ + [ + 'name' => 'pgsql_database', + 'username' => 'pgsql_username', + 'password' => 'pgsql_password', + 'connection' => 'pgsql:', + 'options' => [ + PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION + ] + ], + + 'mail' => [ + 'host' => 'email_host', + 'port' => 'email_port', + 'name' => 'email_name', + 'username' => 'email_username', + 'password' => 'email_password', + ] +]; -- cgit v1.2.3