public function RestClient::__construct in Salesforce Suite 8.3
Same name in this branch
- 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::__construct()
- 8.3 modules/salesforce_encrypt/src/Rest/RestClient.php \Drupal\salesforce_encrypt\Rest\RestClient::__construct()
Construct a new Encrypted Rest Client.
Parameters
\GuzzleHttp\ClientInterface $http_client: The GuzzleHttp Client.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache service.
\Drupal\Component\Serialization\Json $json: The JSON serializer service.
\Drupal\Component\Datetime\TimeInterface $time: The Time service.
\Drupal\encrypt\EncryptServiceInterface $encryption: The encryption service.
\Drupal\encrypt\EncryptionProfileManagerInterface $encryptionProfileManager: The Encryption profile manager service.
\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend service.
Overrides RestClient::__construct
Deprecated
salesforce_encrypt is deprecated and will be removed in 8.x-4.0. Please see change record https://www.drupal.org/node/3034230 for additional information.
File
- modules/
salesforce_encrypt/ src/ Rest/ RestClient.php, line 81
Class
- RestClient
- Objects, properties, and methods to communicate with the Salesforce REST API.
Namespace
Drupal\salesforce_encrypt\RestCode
public function __construct(ClientInterface $http_client, ConfigFactoryInterface $config_factory, StateInterface $state, CacheBackendInterface $cache, Json $json, TimeInterface $time, EncryptServiceInterface $encryption, EncryptionProfileManagerInterface $encryptionProfileManager, LockBackendInterface $lock) {
parent::__construct($http_client, $config_factory, $state, $cache, $json, $time);
$this->encryption = $encryption;
$this->encryptionProfileId = $this->state
->get('salesforce_encrypt.profile');
$this->encryptionProfileManager = $encryptionProfileManager;
$this->encryptionProfile = NULL;
$this->lock = $lock;
}