public function RevocableTokenRepositoryTrait::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same name and namespace in other branches
- 8.4 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()
- 8.2 src/Repositories/RevocableTokenRepositoryTrait.php \Drupal\simple_oauth\Repositories\RevocableTokenRepositoryTrait::__construct()
- 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\RepositoriesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, SerializerInterface $serializer) {
$this->entityTypeManager = $entity_type_manager;
$this->serializer = $serializer;
}