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/managers/Notifications/Notifications.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/inc/managers/Notifications/Notifications.php b/inc/managers/Notifications/Notifications.php
index 4700c1d..61ee88c 100644
--- a/inc/managers/Notifications/Notifications.php
+++ b/inc/managers/Notifications/Notifications.php
@@ -46,8 +46,8 @@
 				]
 			]);
 		}
-		$contentTax = Registrar::getFeatured('is_content', 'term');
-		$verifyEntry = Registrar::getFeatured('verify_entry', 'term');
+		$contentTax = Registrar::withFeature('is_content', 'term');
+		$verifyEntry = Registrar::withFeature('verify_entry', 'term');
 		if (!empty(array_intersect($contentTax, $verifyEntry))) {
 			$types = array_merge($types, [
 				'entry_requested'  => [
@@ -69,7 +69,7 @@
 				]
 			]);
 		}
-		$invitable = Registrar::getFeatured('invitable');
+		$invitable = Registrar::withFeature('invitable');
 		if (!empty($invitable)) {
 			$types = array_merge($types, [
 				'invitation_requested' => [
@@ -97,12 +97,12 @@
 			]);
 		}
 
-		$approvals = Registrar::getFeatured('approve_new');
+		$approvals = Registrar::withFeature('approve_new');
 		if (!empty($approvals)) {
 			$tmp = ['user', 'term', 'post'];
 			$app = [];
 			foreach ($tmp as $t) {
-				$approvals = Registrar::getFeatured('approve_new', $t);
+				$approvals = Registrar::withFeature('approve_new', $t);
 				if (!empty($approvals)) {
 					$app = array_merge($app, [
 						$t.'_new' => [

--
Gitblit v1.10.0