You are here

public function GoogleAuthController::__construct in Social Auth Google 3.x

Same name and namespace in other branches
  1. 8.2 src/Controller/GoogleAuthController.php \Drupal\social_auth_google\Controller\GoogleAuthController::__construct()
  2. 8 src/Controller/GoogleAuthController.php \Drupal\social_auth_google\Controller\GoogleAuthController::__construct()

GoogleAuthController constructor.

Parameters

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\social_api\Plugin\NetworkManager $network_manager: Used to get an instance of social_auth_google network plugin.

\Drupal\social_auth\User\UserAuthenticator $user_authenticator: Used to manage user authentication/registration.

\Drupal\social_auth_google\GoogleAuthManager $google_manager: Used to manage authentication methods.

\Symfony\Component\HttpFoundation\RequestStack $request: Used to access GET parameters.

\Drupal\social_auth\SocialAuthDataHandler $data_handler: The Social Auth data handler.

\Drupal\Core\Render\RendererInterface $renderer: Used to handle metadata for redirection to authentication URL.

Overrides OAuth2ControllerBase::__construct

File

src/Controller/GoogleAuthController.php, line 38

Class

GoogleAuthController
Returns responses for Social Auth Google module routes.

Namespace

Drupal\social_auth_google\Controller

Code

public function __construct(MessengerInterface $messenger, NetworkManager $network_manager, UserAuthenticator $user_authenticator, GoogleAuthManager $google_manager, RequestStack $request, SocialAuthDataHandler $data_handler, RendererInterface $renderer) {
  parent::__construct('Social Auth Google', 'social_auth_google', $messenger, $network_manager, $user_authenticator, $google_manager, $request, $data_handler, $renderer);
}