You are here

public function RevocableTokenRepositoryTrait::getNew in Simple OAuth (OAuth2) & OpenID Connect 8.2

Same name and namespace in other branches
  1. 8.4 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::getNew()
  2. 8.3 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::getNew()
  3. 5.x src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::getNew()
2 calls to RevocableTokenRepositoryTrait::getNew()
AuthCodeRepository::getNewAuthCode in simple_oauth_extras/src/Repositories/AuthCodeRepository.php
RefreshTokenRepository::getNewRefreshToken in src/Repositories/RefreshTokenRepository.php

File

src/Repositories/RevocableTokenRepositoryTrait.php, line 82

Class

RevocableTokenRepositoryTrait

Namespace

Drupal\simple_oauth\Repositories

Code

public function getNew() {
  $class = static::$entity_class;
  return new $class();
}