You are here

public function SamlService::setKeyRepository in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 src/SamlService.php \Drupal\samlauth\SamlService::setKeyRepository()

Set the Key repository service.

This has a separate setter (unlike all other dependent objects mentioned in the constructor) because it's an optional dependency.

Parameters

\Drupal\key\KeyRepositoryInterface $key_repository: the Key repository service.

File

src/SamlService.php, line 201

Class

SamlService
Governs communication between the SAML toolkit and the IdP / login behavior.

Namespace

Drupal\samlauth

Code

public function setKeyRepository(KeyRepositoryInterface $key_repository) {
  $this->keyRepository = $key_repository;
}