You are here

public function HttpServiceApiWrapperBase::__construct in HTTP Client Manager 8.2

HttpServiceApiWrapperBase constructor.

Parameters

\Drupal\http_client_manager\HttpClientManagerFactoryInterface $http_client_factory: The Http Client Factory Service.

\Drupal\Core\Cache\CacheBackendInterface $cache: The Http Client Manager cache bin.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The Language Manager Service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The Messenger Service.

File

src/Plugin/HttpServiceApiWrapper/HttpServiceApiWrapperBase.php, line 81

Class

HttpServiceApiWrapperBase
Class HttpServiceApiWrapperBase.

Namespace

Drupal\http_client_manager\Plugin\HttpServiceApiWrapper

Code

public function __construct(HttpClientManagerFactoryInterface $http_client_factory, CacheBackendInterface $cache, AccountProxyInterface $current_user, LanguageManagerInterface $language_manager, MessengerInterface $messenger) {
  $this->httpClientFactory = $http_client_factory;
  $this->cache = $cache;
  $this->currentUser = $current_user;
  $this->languageManager = $language_manager;
  $this->messenger = $messenger;
}