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.
This commit is contained in:
Abel Hoogeveen 2019-07-22 11:52:28 +02:00
parent 68c2aaa210
commit c1b29cea5f
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}