You are here

public function SiteimproveUtils::__construct in Siteimprove 8

SiteimproveUtils constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Drupal Configuration storage service.

\Drupal\Core\Session\AccountInterface $current_user: Current user service.

\GuzzleHttp\Client $http_client: HTTP Client.

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

\Drupal\Core\Path\PathMatcherInterface $pathMatcher: Drupal PatchMatcher service.

\Drupal\siteimprove\Plugin\SiteimproveDomainManager $siteimproveDomainManager: Siteimprove Domain Manager.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerChannelFactory:

File

src/SiteimproveUtils.php, line 96

Class

SiteimproveUtils
Utility functions for Siteimprove.

Namespace

Drupal\siteimprove

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user, Client $http_client, RouteMatchInterface $routeMatch, PathMatcherInterface $pathMatcher, SiteimproveDomainManager $siteimproveDomainManager, LoggerChannelFactoryInterface $loggerChannelFactory) {
  $this->configFactory = $config_factory;
  $this->currentUser = $current_user;
  $this->httpClient = $http_client;
  $this->routeMatch = $routeMatch;
  $this->pathMatcher = $pathMatcher;
  $this->siteimproveDomainManager = $siteimproveDomainManager;
  $this->logger = $loggerChannelFactory
    ->get('Siteimprove');
}