From ebec204d3aabffd30e73c56c1d4fd9a3efb847d2 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 2 Oct 2025 15:55:47 +0300 Subject: [PATCH] external account client manager using factory --- application/Espo/Core/ExternalAccount/ClientManager.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/Espo/Core/ExternalAccount/ClientManager.php b/application/Espo/Core/ExternalAccount/ClientManager.php index 44781f4d88..72ce2d311e 100644 --- a/application/Espo/Core/ExternalAccount/ClientManager.php +++ b/application/Espo/Core/ExternalAccount/ClientManager.php @@ -248,10 +248,8 @@ class ClientManager $params[$k] = $v; } - $client = new $className($oauth2Client, $params, $this); - if ($this->injectableFactory) { - $this->injectableFactory->createWith($className, [ + $client = $this->injectableFactory->createWith($className, [ 'client' => $oauth2Client, 'params' => $params, 'manager' => $this,