public function SalesforceCommandsBase::__construct in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Commands/SalesforceCommandsBase.php \Drupal\salesforce\Commands\SalesforceCommandsBase::__construct()
- 5.0.x src/Commands/SalesforceCommandsBase.php \Drupal\salesforce\Commands\SalesforceCommandsBase::__construct()
SalesforceCommandsBase constructor.
Parameters
\Drupal\salesforce\Rest\RestClient $client: SF client.
\Drupal\Core\Entity\EntityTypeManagerInterface $etm: Entity type manager.
\Drupal\salesforce\SalesforceAuthProviderPluginManagerInterface $authMan: Auth plugin manager.
\Drupal\salesforce\Storage\SalesforceAuthTokenStorageInterface $tokenStorage: Token storage.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to SalesforceCommandsBase::__construct()
- SalesforceMappingCommandsBase::__construct in modules/
salesforce_mapping/ src/ Commands/ SalesforceMappingCommandsBase.php - SalesforceMappingCommandsBase constructor.
1 method overrides SalesforceCommandsBase::__construct()
- SalesforceMappingCommandsBase::__construct in modules/
salesforce_mapping/ src/ Commands/ SalesforceMappingCommandsBase.php - SalesforceMappingCommandsBase constructor.
File
- src/
Commands/ SalesforceCommandsBase.php, line 63
Class
- SalesforceCommandsBase
- Shared command base for Salesforce Drush commands.
Namespace
Drupal\salesforce\CommandsCode
public function __construct(RestClient $client, EntityTypeManagerInterface $etm, SalesforceAuthProviderPluginManagerInterface $authMan, SalesforceAuthTokenStorageInterface $tokenStorage) {
$this->client = $client;
$this->etm = $etm;
$this->authMan = $authMan;
$this->tokenStorage = $tokenStorage;
}