You are here

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

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

Constructor.

Parameters

\Drupal\Core\Config\ConfigFactory $configFactory: Used for accessing configuration object factory.

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

\Symfony\Component\HttpFoundation\RequestStack $request_stack: Used to get the authorization code from the callback request.

Overrides OAuth2Manager::__construct

File

src/LinkedInAuthManager.php, line 26

Class

LinkedInAuthManager
Contains all the logic for LinkedIn OAuth2 authentication.

Namespace

Drupal\social_auth_linkedin

Code

public function __construct(ConfigFactory $configFactory, LoggerChannelFactoryInterface $logger_factory, RequestStack $request_stack) {
  parent::__construct($configFactory
    ->get('social_auth_linkedin.settings'), $logger_factory, $this->request = $request_stack
    ->getCurrentRequest());
}