Lines Matching refs:service

54     public function retrieveAccessToken($service)  argument
56 if (!$this->hasAccessToken($service)) {
60 if (isset($this->cachedTokens[$service])) {
61 return $this->cachedTokens[$service];
64 $val = $this->redis->hget($this->key, $service);
66 return $this->cachedTokens[$service] = unserialize($val);
72 public function storeAccessToken($service, TokenInterface $token) argument
75 $this->redis->hset($this->key, $service, serialize($token));
76 $this->cachedTokens[$service] = $token;
85 public function hasAccessToken($service) argument
87 if (isset($this->cachedTokens[$service])
88 && $this->cachedTokens[$service] instanceof TokenInterface
93 return $this->redis->hexists($this->key, $service);
99 public function clearToken($service) argument
101 $this->redis->hdel($this->key, $service);
102 unset($this->cachedTokens[$service]);
136 public function retrieveAuthorizationState($service) argument
138 if (!$this->hasAuthorizationState($service)) {
142 if (isset($this->cachedStates[$service])) {
143 return $this->cachedStates[$service];
146 $val = $this->redis->hget($this->stateKey, $service);
148 return $this->cachedStates[$service] = unserialize($val);
154 public function storeAuthorizationState($service, $state) argument
157 $this->redis->hset($this->stateKey, $service, $state);
158 $this->cachedStates[$service] = $state;
167 public function hasAuthorizationState($service) argument
169 if (isset($this->cachedStates[$service])
170 && null !== $this->cachedStates[$service]
175 return $this->redis->hexists($this->stateKey, $service);
181 public function clearAuthorizationState($service) argument
183 $this->redis->hdel($this->stateKey, $service);
184 unset($this->cachedStates[$service]);