You are here

public function OAuthController::__construct in OAuth 1.0 8.2

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

Constructs an OauthController object.

Parameters

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

\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The link generator service.

File

src/Controller/OAuthController.php, line 46
Contains \Drupal\oauth\Controller\OAuthController.

Class

OAuthController
Controller routines for oauth routes.

Namespace

Drupal\oauth\Controller

Code

public function __construct(UserDataInterface $user_data, LinkGeneratorInterface $link_generator) {
  $this->user_data = $user_data;
  $this->linkGenerator = $link_generator;
}