You are here

public function OAuthDrupalProvider::__construct in OAuth 1.0 8.2

Same name and namespace in other branches
  1. 8 src/Authentication/Provider/OAuthDrupalProvider.php \Drupal\oauth\Authentication\Provider\OAuthDrupalProvider::__construct()

Constructor.

Parameters

\Drupal\user\UserDataInterface: The user data service.

\Psr\Log\LoggerInterface $logger: The logger service for OAuth.

File

src/Authentication/Provider/OAuthDrupalProvider.php, line 52
Contains \Drupal\oauth\Authentication\Provider\OAuthProvider.

Class

OAuthDrupalProvider
Oauth authentication provider.

Namespace

Drupal\oauth\Authentication\Provider

Code

public function __construct(UserDataInterface $user_data, LoggerInterface $logger) {
  $this->user_data = $user_data;
  $this->logger = $logger;
}