You are here

protected function CreateStoreCommand::configure in Commerce Core 8.2

File

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

Class

CreateStoreCommand
Provides a command for creating stores.

Namespace

Drupal\commerce_store\Command

Code

protected function configure() {
  $this
    ->setName('commerce:create:store')
    ->setDescription($this
    ->trans('commands.commerce.create.store.description'))
    ->addOption('name', '', InputOption::VALUE_REQUIRED, $this
    ->trans('commands.commerce.create.store.options.name'))
    ->addOption('mail', '', InputOption::VALUE_REQUIRED, $this
    ->trans('commands.commerce.create.store.options.mail'))
    ->addOption('country', '', InputOption::VALUE_REQUIRED, $this
    ->trans('commands.commerce.create.store.options.country'))
    ->addOption('currency', '', InputOption::VALUE_OPTIONAL, $this
    ->trans('commands.commerce.create.store.options.currency'));
}