You are here

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

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

SalesforcePushCommands constructor.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $etm: ETM service.

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

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

\Drupal\salesforce_push\PushQueue $pushQueue: Push queue service.

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides SalesforceMappingCommandsBase::__construct

File

modules/salesforce_push/src/Commands/SalesforcePushCommands.php, line 62

Class

SalesforcePushCommands
A Drush commandfile.

Namespace

Drupal\salesforce_push\Commands

Code

public function __construct(RestClient $client, EntityTypeManagerInterface $etm, SalesforceAuthProviderPluginManagerInterface $auth_man, SalesforceAuthTokenStorageInterface $token_storage, PushQueue $pushQueue, Connection $database) {
  parent::__construct($client, $etm, $auth_man, $token_storage);
  $this->pushQueue = $pushQueue;
  $this->database = $database;
}