Changes how different classes use the Config class.

They were trying to use it as an array instead of using it's helper method that actually returned a usable array.
Fixes #4.
This commit is contained in:
Miguel Nogueira
2018-06-08 15:16:16 +00:00
parent 536b9ac0c3
commit 0ea8c6fb72
4 changed files with 16 additions and 12 deletions

View File

@@ -48,11 +48,12 @@ class Emailer
private function prepareMailerEnvelope()
{
$config = new Config();
$cConfigArray = $config->getConfig();
$username = $Config['mailer']['username'];
$password = $Config['mailer']['password'];
$hostname = $Config['mailer']['hostname'];
$port = $Config['mailer']['port'];
$username = $cConfigArray['mailer']['username'];
$password = $cConfigArray['mailer']['password'];
$hostname = $cConfigArray['mailer']['hostname'];
$port = $cConfigArray['mailer']['port'];
$connStr = 'tls://' . $username . ":" . $password . "@" . $hostname . ":" . $port;