public function SalesforcePullCommands::__construct in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 modules/salesforce_pull/src/Commands/SalesforcePullCommands.php \Drupal\salesforce_pull\Commands\SalesforcePullCommands::__construct()
- 8.3 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\CommandsCode
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;
}