public function ExpiredCollector::__construct in Simple OAuth (OAuth2) & OpenID Connect 8.2
Same name and namespace in other branches
- 8.4 src/ExpiredCollector.php \Drupal\simple_oauth\ExpiredCollector::__construct()
- 8.3 src/ExpiredCollector.php \Drupal\simple_oauth\ExpiredCollector::__construct()
- 5.x src/ExpiredCollector.php \Drupal\simple_oauth\ExpiredCollector::__construct()
ExpiredCollector constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Component\Datetime\TimeInterface $date_time: The date time service.
File
- src/
ExpiredCollector.php, line 39
Class
- ExpiredCollector
- Service in charge of deleting or expiring tokens that cannot be used anymore.
Namespace
Drupal\simple_oauthCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TimeInterface $date_time) {
$this->clientStorage = $entity_type_manager
->getStorage('oauth2_client');
$this->tokenStorage = $entity_type_manager
->getStorage('oauth2_token');
$this->dateTime = $date_time;
}