From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks
---
inc/managers/queue/executors/IntegrationExecutor.php | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/inc/managers/queue/executors/IntegrationExecutor.php b/inc/managers/queue/executors/IntegrationExecutor.php
index 9af8556..3896fa5 100644
--- a/inc/managers/queue/executors/IntegrationExecutor.php
+++ b/inc/managers/queue/executors/IntegrationExecutor.php
@@ -3,6 +3,9 @@
use JVBase\managers\queue\{Executor, Operation, Progress, Result};
use Exception;
+use JVBase\integrations\Integrations;
+use JVBase\integrations\ServiceMap;
+use JVBase\managers\Errors;
if (!defined('ABSPATH')) {
exit;
@@ -28,11 +31,8 @@
*/
final class IntegrationExecutor implements Executor
{
- /**
- * Map of integration service names to class identifiers.
- * Populated on first use from JVB()->connect().
- */
- private array $integrationCache = [];
+ use ServiceMap;
+
public function execute(Operation $operation, Progress $progress): Result
{
@@ -60,7 +60,7 @@
};
} catch (Exception $e) {
- JVB()->error()->log(
+ Errors::getInstance()->log(
'[IntegrationExecutor]:execute',
$e->getMessage(),
[
@@ -105,7 +105,7 @@
if ($userId === 0) {
$userId = null;
}
- return JVB()->connect($serviceName, $userId);
+ return $this->getServiceUser($serviceName, $userId);
}
/*****************************************************************
--
Gitblit v1.10.0