You are here

public function OAuth2Storage::__construct in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/OAuth2Storage.php \Drupal\oauth2_server\OAuth2Storage::__construct()

Constructs a new OAuth2Storage.

Parameters

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

\Drupal\Core\Password\PasswordInterface $password_hasher: The password hasher.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Component\Datetime\TimeInterface $time: The time object.

File

src/OAuth2Storage.php, line 70

Class

OAuth2Storage
Provides Drupal OAuth2 storage for the library.

Namespace

Drupal\oauth2_server

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, PasswordInterface $password_hasher, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, TimeInterface $time) {
  $this->entityTypeManager = $entity_type_manager;
  $this->passwordHasher = $password_hasher;
  $this->moduleHandler = $module_handler;
  $this->configFactory = $config_factory;
  $this->time = $time;
}