From a6413da67a4579866f0fd0323ddb23a7b6b9654a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 18 Sep 2026 17:00:53 +0000
Subject: [PATCH] =Cleaning up the Integrations setup a bit, started the Helcim integration work too
---
inc/integrations/ServiceMap.php | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/inc/integrations/ServiceMap.php b/inc/integrations/ServiceMap.php
index 7cc2069..7fa64c2 100644
--- a/inc/integrations/ServiceMap.php
+++ b/inc/integrations/ServiceMap.php
@@ -29,7 +29,7 @@
public function getServiceUser(string $service, ?int $userID = null):Integrations|false
{
$service = $this->getService($service);
- if ($service->userID !== $userID && method_exists($service, 'switchUser')) {
+ if ($service->getUserID() !== $userID && method_exists($service, 'switchUser')) {
$service->switchUser($userID);
}
return $service;
@@ -37,8 +37,6 @@
public function getAvailableServices():array
{
- return array_filter(array_keys($this->serviceMap), function ($service) {
- return Site::hasIntegration($service);
- }, ARRAY_FILTER_USE_KEY);
+ return array_keys(Site::getIntegrations());
}
}
--
Gitblit v1.10.0