You are here

public function LingotekHttp::__construct in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  2. 4.0.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  3. 3.0.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  4. 3.1.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  5. 3.2.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  6. 3.3.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  7. 3.4.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  8. 3.5.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  9. 3.6.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  10. 3.7.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()
  11. 3.8.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::__construct()

Parameters

\GuzzleHttp\ClientInterface $http_client: The Guzzle HTTP client.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Remote/LingotekHttp.php, line 28

Class

LingotekHttp

Namespace

Drupal\lingotek\Remote

Code

public function __construct(ClientInterface $http_client, ConfigFactoryInterface $config_factory) {
  $this->httpClient = $http_client;
  $this->config = $config_factory
    ->get('lingotek.settings');
}