You are here

public function OAuth2DrupalAuthProvider::__construct in OAuth2 Server 8

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

OAuth2 Drupal Auth Provider constructor.

Parameters

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

\Drupal\oauth2_server\OAuth2StorageInterface $oauth2_storage: The OAuth2 storage object.

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

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

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

File

src/Authentication/Provider/OAuth2DrupalAuthProvider.php, line 72

Class

OAuth2DrupalAuthProvider
OAuth2 Drupal Auth Provider.

Namespace

Drupal\oauth2_server\Authentication\Provider

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, OAuth2StorageInterface $oauth2_storage, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, TimeInterface $time) {
  $this->configFactory = $config_factory;
  $this->storage = $oauth2_storage;
  $this->entityTypeManager = $entity_type_manager;
  $this->loggerFactory = $logger_factory;
  $this->time = $time;
}