public function KeycloakController::__construct in Keycloak OpenID Connect 8
Constructs a KeycloakController object.
Parameters
\Drupal\keycloak\Service\KeycloakServiceInterface $keycloak: A Keycloak service instance.
\Drupal\Core\Session\AccountProxyInterface $current_user: Account proxy for the currently logged-in user.
\Drupal\openid_connect\Plugin\OpenIDConnectClientManager $plugin_manager: The OpenID Connect plug-in manager.
\Drupal\openid_connect\OpenIDConnectClaims $claims: The OpenID Connect claims.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- src/
Controller/ KeycloakController.php, line 71
Class
- KeycloakController
- Keycloak controller.
Namespace
Drupal\keycloak\ControllerCode
public function __construct(KeycloakServiceInterface $keycloak, AccountProxyInterface $current_user, OpenIDConnectClientManager $plugin_manager, OpenIDConnectClaims $claims, RequestStack $request_stack) {
$this->keycloak = $keycloak;
$this->currentUser = $current_user;
$this->pluginManager = $plugin_manager;
$this->claims = $claims;
$this->requestStack = $request_stack;
}