You are here

private function CmisConnectionApi::setHttpInvoker in CMIS API 8

Same name and namespace in other branches
  1. 8.2 src/CmisConnectionApi.php \Drupal\cmis\CmisConnectionApi::setHttpInvoker()
  2. 3.0.x src/CmisConnectionApi.php \Drupal\cmis\CmisConnectionApi::setHttpInvoker()

Set Http invoker.

1 call to CmisConnectionApi::setHttpInvoker()
CmisConnectionApi::setConfig in src/CmisConnectionApi.php
Set the configuration fom configuration id.

File

src/CmisConnectionApi.php, line 123

Class

CmisConnectionApi
Description of CmisConnectionApi

Namespace

Drupal\cmis

Code

private function setHttpInvoker() {
  $guzzle = [
    'defaults' => [
      'auth' => [
        $this->config
          ->getCmisUser(),
        $this->config
          ->getCmisPassword(),
      ],
    ],
  ];
  $this->httpInvoker = new \GuzzleHttp\Client($guzzle);
}