You are here

class SalesforceEncryptServiceProvider in Salesforce Suite 8.3

Modifies the salesforce client service.

Hierarchy

Expanded class hierarchy of SalesforceEncryptServiceProvider

File

modules/salesforce_encrypt/src/SalesforceEncryptServiceProvider.php, line 13

Namespace

Drupal\salesforce_encrypt
View 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

Namesort descending Modifiers Type Description Overrides
SalesforceEncryptServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1