You are here

public function SalesforceMappingCommands::__construct in Salesforce Suite 8.4

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

SalesforceMappingCommands constructor.

Parameters

\Drupal\salesforce\Rest\RestClient $client: The salesforce.client service.

\Drupal\Core\Entity\EntityTypeManagerInterface $etm: The entity_type.manager service.

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

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

\Drupal\Core\Config\ConfigFactory $configFactory: The config.factory service.

\Drupal\Core\Database\Connection $database: The database service.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides SalesforceMappingCommandsBase::__construct

File

modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php, line 62

Class

SalesforceMappingCommands
A Drush commandfile.

Namespace

Drupal\salesforce_mapping\Commands

Code

public function __construct(RestClient $client, EntityTypeManagerInterface $etm, SalesforceAuthProviderPluginManagerInterface $auth_man, SalesforceAuthTokenStorageInterface $token_storage, ConfigFactory $configFactory, Connection $database) {
  parent::__construct($client, $etm, $auth_man, $token_storage);
  $this->database = $database;
  $this->salesforceConfig = $configFactory
    ->get('salesforce.settings');
}