You are here

public function SalesforcePushCommands::__construct in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_push/src/Commands/SalesforcePushCommands.php \Drupal\salesforce_push\Commands\SalesforcePushCommands::__construct()
  2. 5.0.x 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_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 55

Class

SalesforcePushCommands
A Drush commandfile.

Namespace

Drupal\salesforce_push\Commands

Code

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