You are here

public function GoogleAuthManager::__construct in Social Auth Google 8.2

Same name and namespace in other branches
  1. 8 src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::__construct()
  2. 3.x src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::__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.

File

src/GoogleAuthManager.php, line 26

Class

GoogleAuthManager
Contains all the logic for Google OAuth2 authentication.

Namespace

Drupal\social_auth_google

Code

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