コード例 #1
0
 public function associateScope(AccessTokenEntity $token, ScopeEntity $scope)
 {
     $this->redis->lpush("access_token:scopes:{$token}", "{$scope->getId()}:{$scope->getDescription()}");
 }
コード例 #2
0
 public function associateScope(SessionEntity $session, ScopeEntity $scope)
 {
     $this->redis->lpush("session:scopes:{$session->getId()}", "{$scope->getId()}:{$scope->getDescription()}");
 }