SalesforceEncryptServiceProvider.php in Salesforce Suite 8.3
Namespace
Drupal\salesforce_encryptFile
modules/salesforce_encrypt/src/SalesforceEncryptServiceProvider.phpView source
<?php
namespace Drupal\salesforce_encrypt;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Drupal\salesforce_encrypt\Rest\RestClient;
use Symfony\Component\DependencyInjection\Reference;
/**
* Modifies the salesforce client service.
*/
class SalesforceEncryptServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Overrides salesforce.client class with our EncryptedRestClientInterface.
$container
->getDefinition('salesforce.client')
->setClass(RestClient::class)
->addArgument(new Reference('encryption'))
->addArgument(new Reference('encrypt.encryption_profile.manager'))
->addArgument(new Reference('lock'));
}
}
Classes
Name | Description |
---|---|
SalesforceEncryptServiceProvider | Modifies the salesforce client service. |