You are here

public function ConfigForm::__construct in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 src/Form/ConfigForm.php \Drupal\jwt\Form\ConfigForm::__construct()

ConfigForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory for parent.

\Drupal\key\KeyRepositoryInterface $key_repo: Key repo to validate keys.

\Drupal\jwt\Transcoder\JwtTranscoder $transcoder: JWT Transcoder.

Overrides ConfigFormBase::__construct

File

src/Form/ConfigForm.php, line 43

Class

ConfigForm
Class ConfigForm.

Namespace

Drupal\jwt\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, KeyRepositoryInterface $key_repo, JwtTranscoder $transcoder) {
  $this->keyRepo = $key_repo;
  $this->transcoder = $transcoder;
  parent::__construct($config_factory);
}