public function GoogleAuthManager::__construct in Social Auth Google 3.x
Same name and namespace in other branches
- 8.2 src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::__construct()
- 8 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.
Overrides OAuth2Manager::__construct
File
- src/
GoogleAuthManager.php, line 26
Class
- GoogleAuthManager
- Contains all the logic for Google OAuth2 authentication.
Namespace
Drupal\social_auth_googleCode
public function __construct(ConfigFactory $configFactory, LoggerChannelFactoryInterface $logger_factory, RequestStack $request_stack) {
parent::__construct($configFactory
->get('social_auth_google.settings'), $logger_factory, $request_stack
->getCurrentRequest());
}