You are here

public function ApiAuthorize::__construct in FormAssembly 8

ApiAuthorize constructor.

Parameters

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

\Psr\Log\LoggerInterface $loggerChannel: Injected Logger service.

\Drupal\Core\State\StateInterface $state: Injected State service.

\Drupal\formassembly\FormAssemblyKeyService $keyService: Injected Key service.

Overrides ApiBase::__construct

File

src/ApiAuthorize.php, line 53

Class

ApiAuthorize
Service class for FormAssembly API: Handles authorization.

Namespace

Drupal\formassembly

Code

public function __construct(ConfigFactory $config_factory, LoggerInterface $loggerChannel, State $state, FormAssemblyKeyService $keyService) {
  parent::__construct($config_factory, $loggerChannel);
  $this->state = $state;
  $this->keyService = $keyService;
}