You are here

public function FormAssemblyKeyService::__construct in FormAssembly 8

KeyService constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Injected service.

File

src/FormAssemblyKeyService.php, line 37

Class

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

Namespace

Drupal\formassembly

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->oauthConfig = $config_factory
    ->get('formassembly.api.oauth')
    ->get('credentials');
}