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:
@@ -22,8 +22,9 @@ class EmailRenderer
|
||||
public function __construct()
|
||||
{
|
||||
$config = new Config();
|
||||
$cConfigArray = $config->getConfig();
|
||||
|
||||
$loader = new Twig_Loader_Filesystem($config['templates']['templatesDirectory']);
|
||||
$loader = new Twig_Loader_Filesystem($cConfigArray['templates']['templatesDirectory']);
|
||||
$this->twig = new Twig_Environment($loader);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user