From c204185ae86a98994f80010abf35a190c9406739 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 12 Jul 2026 18:08:19 +0000
Subject: [PATCH] =Refactor of Integrations.php. Separated different functionality into traits that classes can use to add that functionality. Hopefully will make maintaining it a little easier. Still have to finish up, as well as refactoring the individual classes to utilize the new system.
---
inc/integrations/services/Facebook.php | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/inc/integrations/Facebook.php b/inc/integrations/services/Facebook.php
similarity index 98%
rename from inc/integrations/Facebook.php
rename to inc/integrations/services/Facebook.php
index 2812607..842cc96 100644
--- a/inc/integrations/Facebook.php
+++ b/inc/integrations/services/Facebook.php
@@ -3,12 +3,12 @@
* Facebook Integration
* Handles Facebook posts, page information, events, and OAuth authentication
*/
-namespace JVBase\integrations;
-use Exception;
+namespace JVBase\integrations\services;
+use JVBase\integrations\Integrations;
use JVBase\meta\Meta;
-use WP_Error;
use WP_Post;
+use WP_Error;
if (!defined('ABSPATH')) {
exit;
@@ -127,8 +127,9 @@
$this->defaults = [
];
- $this->handleWebhooks = true;
- parent::__construct($userID);
+ $this->hasWebhooks = true;
+
+ parent::__construct();
$this->actions = array_merge($this->actions, [
'sync_pages' => 'getUserPages'
--
Gitblit v1.10.0