From c4acb26758f37b751e2ea16a79cc539297983ead Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 31 Mar 2024 20:47:43 +0200 Subject: [PATCH] Bugfix: extensions set logger failed --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php | 1 - .../v/0.0.0/app/libraries/RainLoop/Plugins/Manager.php | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php index 047ec84fa..45790c305 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php @@ -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)); } diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Plugins/Manager.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Plugins/Manager.php index 5fe62aaab..4e09f7212 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Plugins/Manager.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Plugins/Manager.php @@ -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);