You are here

public function CreateStoreCommand::__construct in Commerce Core 8.2

Constructs a new CreateStoreCommand object.

Parameters

\Drupal\commerce_price\CurrencyImporter $commerce_price_currency_importer: The currency importer.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\CommerceGuys\Addressing\Country\CountryRepositoryInterface $country_repository: The country repository.

\Drupal\Core\Render\MetadataBubblingUrlGenerator $url_generator: The URL generator.

\Egulias\EmailValidator\EmailValidator $email_validator: The email validator.

File

modules/store/src/Command/CreateStoreCommand.php, line 82

Class

CreateStoreCommand
Provides a command for creating stores.

Namespace

Drupal\commerce_store\Command

Code

public function __construct(CurrencyImporter $commerce_price_currency_importer, EntityTypeManagerInterface $entity_type_manager, CountryRepositoryInterface $country_repository, MetadataBubblingUrlGenerator $url_generator, EmailValidator $email_validator) {
  $this->currencyImporter = $commerce_price_currency_importer;
  $this->entityTypeManager = $entity_type_manager;
  $this->countryRepository = $country_repository;
  $this->urlGenerator = $url_generator;
  $this->emailValidator = $email_validator;
  parent::__construct();
}