Bugfix: extensions set logger failed

This commit is contained in:
the-djmaze 2024-03-31 20:47:43 +02:00
parent a9e5f1c6f8
commit c4acb26758
2 changed files with 2 additions and 5 deletions

View file

@ -147,7 +147,6 @@ class Actions
}
$this->oPlugins = new Plugins\Manager($this);
$this->oPlugins->SetLogger($this->oLogger);
$this->oPlugins->RunHook('filter.application-config', array($this->oConfig));
}

View file

@ -6,10 +6,7 @@ class Manager
{
use \MailSo\Log\Inherit;
/**
* @var \RainLoop\Actions
*/
private $oActions;
private \RainLoop\Actions $oActions;
private array
$aHooks = array(),
@ -26,6 +23,7 @@ class Manager
public function __construct(\RainLoop\Actions $oActions)
{
$this->oActions = $oActions;
$this->SetLogger($oActions->Logger());
$oConfig = $oActions->Config();
$this->bIsEnabled = (bool) $oConfig->Get('plugins', 'enable', false);