| | |
| | | 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 |
| | |
| | | |
| | | protected function initializeRateLimiters():void |
| | | { |
| | | $key = $this->service_name; |
| | | if (!is_null($this->userID)) { |
| | | $key .= '_'.$this->userID; |
| | | } |
| | | if (method_exists($this, 'initializeRequestLimiter')) { |
| | | $this->initializeRequestLimiter(); |
| | | } |