| | |
| | | namespace JVBase\integrations; |
| | | |
| | | use JVBase\managers\Cache; |
| | | use JVBase\managers\Errors; |
| | | use JVBase\managers\IconsManager; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | |
| | | 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 |
| | |
| | | if (method_exists($this, 'initializeRequestLimiter')) { |
| | | $this->initializeRequestLimiter(); |
| | | } |
| | | if (method_exists($this, 'intializeOAuthRateLimiter')) { |
| | | if (method_exists($this, 'initializeOAuthRateLimiter')) { |
| | | $this->initializeOAuthRateLimiter(); |
| | | } |
| | | } |
| | |
| | | } |
| | | return $response; |
| | | } |
| | | |
| | | public function getAllowedContent():array |
| | | { |
| | | return array_keys($this->contentTypes); |
| | | } |
| | | |
| | | public function getServiceName():string |
| | | { |
| | | return $this->service_name; |
| | | } |
| | | } |