You are here

public function RevocableTokenRepositoryTrait::__construct 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::__construct()
  2. 8.3 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()
  3. 5.x src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()

Construct a revocable token.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\simple_oauth\Normalizer\TokenEntityNormalizerInterface $normalizer:

File

src/Repositories/RevocableTokenRepositoryTrait.php, line 29

Class

RevocableTokenRepositoryTrait

Namespace

Drupal\simple_oauth\Repositories

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Serializer $serializer) {
  $this->entityTypeManager = $entity_type_manager;
  $this->serializer = $serializer;
}