23 $this->_scopeConfig = $scopeConfig;
68 $configValue = (int)$this->_scopeConfig->getValue(self::XML_PATH_CLEANUP_PROBABILITY);
79 $minutes = (int)$this->_scopeConfig->getValue(self::XML_PATH_CLEANUP_EXPIRATION_PERIOD);
90 $seconds = (int)$this->_scopeConfig->getValue(self::XML_PATH_CONSUMER_EXPIRATION_PERIOD);
101 $redirects = (int)$this->_scopeConfig->getValue(self::XML_PATH_CONSUMER_POST_MAXREDIRECTS);
102 return $redirects > 0 ? $redirects : 0;
112 $seconds = (int)$this->_scopeConfig->getValue(self::XML_PATH_CONSUMER_POST_TIMEOUT);
123 $hours = (int)$this->_scopeConfig->getValue(
'oauth/access_token_lifetime/customer');
124 return $hours > 0 ? $hours : 0;
134 $hours = (int)$this->_scopeConfig->getValue(
'oauth/access_token_lifetime/admin');
135 return $hours > 0 ? $hours : 0;
const XML_PATH_CLEANUP_EXPIRATION_PERIOD
static getRandomNumber($min=0, $max=null)
getCleanupExpirationPeriod()
const XML_PATH_CONSUMER_POST_MAXREDIRECTS
const CONSUMER_EXPIRATION_PERIOD_DEFAULT
const CONSUMER_POST_TIMEOUT_DEFAULT
getCustomerTokenLifetime()
getConsumerExpirationPeriod()
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
const CLEANUP_EXPIRATION_PERIOD_DEFAULT
const XML_PATH_CONSUMER_EXPIRATION_PERIOD
const XML_PATH_CLEANUP_PROBABILITY
getConsumerPostMaxRedirects()
const XML_PATH_CONSUMER_POST_TIMEOUT