You are here

public function Keycloak::__construct in Keycloak OpenID Connect 8

Constructs an instance of the Keycloak client plugin.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin identifier.

mixed $plugin_definition: The plugin definition.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\GuzzleHttp\ClientInterface $http_client: The http client.

\Drupal\keycloak\Service\KeycloakServiceInterface $keycloak: The Keycloak service.

\Drupal\keycloak\Service\KeycloakRoleMatcher $role_matcher: The Keycloak role manager service.

\Drupal\Component\Uuid\UuidInterface $uuid: The UUID service.

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

Overrides OpenIDConnectClientBase::__construct

File

src/Plugin/OpenIDConnectClient/Keycloak.php, line 78

Class

Keycloak
OpenID Connect client for Keycloak.

Namespace

Drupal\keycloak\Plugin\OpenIDConnectClient

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RequestStack $request_stack, ClientInterface $http_client, KeycloakServiceInterface $keycloak, KeycloakRoleMatcher $role_matcher, UuidInterface $uuid, LoggerChannelFactoryInterface $logger_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $request_stack, $http_client, $logger_factory);
  $this->keycloak = $keycloak;
  $this->roleMatcher = $role_matcher;
  $this->uuid = $uuid;
}