You are here

public function LinkedInAuthController::__construct in Social Auth LinkedIn 3.x

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

LinkedInAuthController 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_linkedin network plugin.

\Drupal\social_auth\User\UserAuthenticator $user_authenticator: Manages user login/registration.

\Drupal\social_auth_linkedin\LinkedInAuthManager $linkedIn_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/LinkedInAuthController.php, line 45

Class

LinkedInAuthController
Returns responses for Social Auth LinkedIn routes.

Namespace

Drupal\social_auth_linkedin\Controller

Code

public function __construct(MessengerInterface $messenger, NetworkManager $network_manager, UserAuthenticator $user_authenticator, LinkedInAuthManager $linkedIn_manager, RequestStack $request, SocialAuthDataHandler $data_handler, RendererInterface $renderer) {
  parent::__construct('Social Auth LinkedIn', 'social_auth_linkedin', $messenger, $network_manager, $user_authenticator, $linkedIn_manager, $request, $data_handler, $renderer);
}