You are here

public function SalesforceMappingCommandsBase::__construct in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommandsBase::__construct()
  2. 8.3 modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommandsBase::__construct()

SalesforceMappingCommandsBase constructor.

Parameters

\Drupal\salesforce\Rest\RestClient $client: SF client.

\Drupal\Core\Entity\EntityTypeManagerInterface $etm: Entity type manager.

\Drupal\salesforce\SalesforceAuthProviderPluginManagerInterface $auth_man: Auth plugin manager.

\Drupal\salesforce\Storage\SalesforceAuthTokenStorageInterface $token_storage: Token storage.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides SalesforceCommandsBase::__construct

3 calls to SalesforceMappingCommandsBase::__construct()
SalesforceMappingCommands::__construct in modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php
SalesforceMappingCommands constructor.
SalesforcePullCommands::__construct in modules/salesforce_pull/src/Commands/SalesforcePullCommands.php
SalesforcePullCommands constructor.
SalesforcePushCommands::__construct in modules/salesforce_push/src/Commands/SalesforcePushCommands.php
SalesforcePushCommands constructor.
3 methods override SalesforceMappingCommandsBase::__construct()
SalesforceMappingCommands::__construct in modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php
SalesforceMappingCommands constructor.
SalesforcePullCommands::__construct in modules/salesforce_pull/src/Commands/SalesforcePullCommands.php
SalesforcePullCommands constructor.
SalesforcePushCommands::__construct in modules/salesforce_push/src/Commands/SalesforcePushCommands.php
SalesforcePushCommands constructor.

File

modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php, line 65

Class

SalesforceMappingCommandsBase
Shared command base for Salesforce Drush commands.

Namespace

Drupal\salesforce_mapping\Commands

Code

public function __construct(RestClient $client, EntityTypeManagerInterface $etm, SalesforceAuthProviderPluginManagerInterface $auth_man, SalesforceAuthTokenStorageInterface $token_storage) {
  parent::__construct($client, $etm, $auth_man, $token_storage);
  $this->mappingStorage = $etm
    ->getStorage('salesforce_mapping');
  $this->mappedObjectStorage = $etm
    ->getStorage('salesforce_mapped_object');
}