class SalesforceEncryptServiceProvider in Salesforce Suite 8.3
Modifies the salesforce client service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\salesforce_encrypt\SalesforceEncryptServiceProvider
Expanded class hierarchy of SalesforceEncryptServiceProvider
File
- modules/
salesforce_encrypt/ src/ SalesforceEncryptServiceProvider.php, line 13
Namespace
Drupal\salesforce_encryptView source
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'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SalesforceEncryptServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |