public function SalesforceMappingCommands::__construct in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::__construct()
- 5.0.x modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::__construct()
SalesforceMappingCommands constructor.
Parameters
\Drupal\salesforce\Rest\RestClient $client: The salesforce.client service.
\Drupal\Core\Entity\EntityTypeManagerInterface $etm: The entity_type.manager service.
\Drupal\Core\Config\ConfigFactory $configFactory: The config.factory service.
\Drupal\Core\Database\Connection $database: The database service.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides SalesforceMappingCommandsBase::__construct
File
- modules/
salesforce_mapping/ src/ Commands/ SalesforceMappingCommands.php, line 45
Class
- SalesforceMappingCommands
- A Drush commandfile.
Namespace
Drupal\salesforce_mapping\CommandsCode
public function __construct(RestClient $client, EntityTypeManagerInterface $etm, ConfigFactory $configFactory, Connection $database) {
parent::__construct($client, $etm);
$this->database = $database;
$this->salesforceConfig = $configFactory
->get('salesforce.settings');
}