You are here

public function KeycloakRoleMatcher::__construct in Keycloak OpenID Connect 8

Constructs a RoleManager service object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

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

File

src/Service/KeycloakRoleMatcher.php, line 50

Class

KeycloakRoleMatcher
Role matcher service.

Namespace

Drupal\keycloak\Service

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $string_translation, LoggerChannelFactoryInterface $logger_factory) {
  $this->config = $config_factory
    ->get('openid_connect.settings.keycloak');
  $this->stringTranslation = $string_translation;
  $this->loggerFactory = $logger_factory;
}