You are here

public function RevocableTokenRepositoryTrait::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()
  2. 8.2 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()
  3. 8.3 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()

Construct a revocable token.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Symfony\Component\Serializer\SerializerInterface $serializer: The normalizer for tokens.

File

src/Repositories/RevocableTokenRepositoryTrait.php, line 43

Class

RevocableTokenRepositoryTrait
Common methods for token repositories on different grants.

Namespace

Drupal\simple_oauth\Repositories

Code

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