From c1b29cea5f982060a762f038056655c533a85a31 Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Mon, 22 Jul 2019 11:52:28 +0200 Subject: [PATCH] Fixed bug relating to configuration files not being read properly. - The plugins system wasn't properly registering the plugins config, because it was initialized at construct, which resulted in alternative directories not yet being loaded. The method has been changed to init() instead. --- src/FuzeWorks/Plugins.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FuzeWorks/Plugins.php b/src/FuzeWorks/Plugins.php index a77cd98..ef2de7f 100644 --- a/src/FuzeWorks/Plugins.php +++ b/src/FuzeWorks/Plugins.php @@ -89,12 +89,12 @@ class Plugins protected $cfg; /** - * Called upon creation of the plugins class. + * Called upon initialization of the Container * * @throws ConfigException * @codeCoverageIgnore */ - public function __construct() + public function init() { $this->cfg = Factory::getInstance()->config->getConfig('plugins'); }