You are here

public function SalesforcePullCommands::__construct in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 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\SalesforceAuthProviderPluginManagerInterface $auth_man: Auth plugin manager.

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

\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 64

Class

SalesforcePullCommands
A Drush commandfile.

Namespace

Drupal\salesforce_pull\Commands

Code

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