Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
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
@@ -144,7 +145,7 @@
      if (method_exists($this, 'initializeRequestLimiter')) {
         $this->initializeRequestLimiter();
      }
      if (method_exists($this, 'intializeOAuthRateLimiter')) {
      if (method_exists($this, 'initializeOAuthRateLimiter')) {
         $this->initializeOAuthRateLimiter();
      }
   }
@@ -160,4 +161,14 @@
      }
      return $response;
   }
   public function getAllowedContent():array
   {
      return array_keys($this->contentTypes);
   }
   public function getServiceName():string
   {
      return $this->service_name;
   }
}