You are here

public function KeyGeneratorService::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/Service/KeyGeneratorService.php \Drupal\simple_oauth\Service\KeyGeneratorService::__construct()
  2. 8.3 src/Service/KeyGeneratorService.php \Drupal\simple_oauth\Service\KeyGeneratorService::__construct()

KeyGeneratorService constructor.

Parameters

\Drupal\simple_oauth\Service\Filesystem\FileSystemChecker $file_system_checker: The file system checker.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

File

src/Service/KeyGeneratorService.php, line 45

Class

KeyGeneratorService
Generates the signature keys.

Namespace

Drupal\simple_oauth\Service

Code

public function __construct(FileSystemChecker $file_system_checker, FileSystemInterface $file_system) {
  $this->fileSystemChecker = $file_system_checker;
  $this->fileSystem = $file_system;
  $this->validator = new FilesystemValidator($file_system_checker);
}