Jake Vanderwerf
2026-09-16 a239ef33ec489ce6d0f25ac2f256df0ac54a7e50
inc/integrations/_Base.php
@@ -2,6 +2,7 @@
namespace JVBase\integrations;
use JVBase\managers\Cache;
use JVBase\managers\Errors;
use JVBase\managers\IconsManager;
if (!defined('ABSPATH')) {
@@ -108,7 +109,7 @@
   protected function logError(string $method, string $message, array $context = []):void
   {
      $context['service'] = $this->service_name;
      JVB()->error()->log('['.self::class.']'.$method, $message, $context);
      Errors::getInstance()->log('['.self::class.']'.$method, $message, $context);
   }
   protected function getReturnURL():string
@@ -137,14 +138,10 @@
   protected function initializeRateLimiters():void
   {
      $key = $this->service_name;
      if (!is_null($this->userID)) {
         $key .= '_'.$this->userID;
      }
      if (method_exists($this, 'initializeRequestLimiter')) {
         $this->initializeRequestLimiter();
      }
      if (method_exists($this, 'intializeOAuthRateLimiter')) {
      if (method_exists($this, 'initializeOAuthRateLimiter')) {
         $this->initializeOAuthRateLimiter();
      }
   }
@@ -160,4 +157,14 @@
      }
      return $response;
   }
   public function getAllowedContent():array
   {
      return array_keys($this->contentTypes);
   }
   public function getServiceName():string
   {
      return $this->service_name;
   }
}