You are here

public function SalesforcePullCommands::__construct in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_pull/src/Commands/SalesforcePullCommands.php \Drupal\salesforce_pull\Commands\SalesforcePullCommands::__construct()
  2. 5.0.x modules/salesforce_pull/src/Commands/SalesforcePullCommands.php \Drupal\salesforce_pull\Commands\SalesforcePullCommands::__construct()

SalesforcePullCommands constructor.

Parameters

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

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

\Drupal\salesforce_pull\QueueHandler $pullQueue: Pull queue handler service.

\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $eventDispatcher: Event dispatcher service.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides SalesforceMappingCommandsBase::__construct

File

modules/salesforce_pull/src/Commands/SalesforcePullCommands.php, line 58

Class

SalesforcePullCommands
A Drush commandfile.

Namespace

Drupal\salesforce_pull\Commands

Code

public function __construct(RestClient $client, EntityTypeManagerInterface $etm, QueueHandler $pullQueue, ContainerAwareEventDispatcher $eventDispatcher) {
  parent::__construct($client, $etm);
  $this->pullQueue = $pullQueue;
  $this->eventDispatcher = $eventDispatcher;
}