You are here

public function ApiMarkup::__construct in FormAssembly 8

ApiSync constructor.

Parameters

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

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

\GuzzleHttp\Client $http_client: Injected Guzzle client.

\Drupal\formassembly\ApiAuthorize $authorize: Injected api service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Injected service.

\Drupal\Core\Utility\Token $tokenService: Injected service.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: Injected service.

\Drupal\Core\Session\AccountProxyInterface $userProxy: Injected service.

Overrides ApiBase::__construct

File

src/ApiMarkup.php, line 93

Class

ApiMarkup
Service class for FormAssembly API: Fetches form markup.

Namespace

Drupal\formassembly

Code

public function __construct(ConfigFactory $config_factory, LoggerInterface $loggerChannel, Client $http_client, ApiAuthorize $authorize, ModuleHandlerInterface $moduleHandler, Token $tokenService, RouteMatchInterface $routeMatch, AccountProxyInterface $userProxy) {
  parent::__construct($config_factory, $loggerChannel);
  $this->httpClient = $http_client;
  $this->authorize = $authorize;
  $this->moduleHandler = $moduleHandler;
  $this->tokens = $tokenService;
  $this->routeMatch = $routeMatch;
  $this->userProxy = $userProxy;
}