You are here

public function FormAssemblyKeyService::setKeyRepository in FormAssembly 8

Provides a means to our services.yml file to conditionally inject service.

Parameters

\Drupal\key\KeyRepositoryInterface $repository: The injected service, if it exists.

See also

maw_luminate.services.yml

File

src/FormAssemblyKeyService.php, line 49

Class

FormAssemblyKeyService
This service retrieves the appropriate api key from the configured provider.

Namespace

Drupal\formassembly

Code

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