$this->
addOption('shop-name', null, InputOption::VALUE_REQUIRED, 'The name of your shop'
) ->
addOption('shop-email', null, InputOption::VALUE_REQUIRED, 'Shop email address'
) ->
addOption('shop-locale', null, InputOption::VALUE_REQUIRED, 'Default language locale of the shop'
) ->
addOption('shop-currency', null, InputOption::VALUE_REQUIRED, 'Iso code for the default currency of the shop'
) ->
addOption('no-interaction', 'n', InputOption::VALUE_NONE, 'Run command in non-interactive mode'
) ;
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $output =
new ShopwareStyle($input,
$output);
$this->shopConfigurator->
updateBasicInformation($input->
getOption('shop-name'
),
$input->
getOption('shop-email'
));
$output->
writeln('Shop configured successfully'
);
$output->
writeln(''
);
if ($input->
getOption('shop-locale'
)) { if (!
$input->
getOption('no-interaction'
)) { if (!
$output->
confirm('Changing the shops default locale after the fact can be destructive. Are you sure you want to continue', false
)) { $output->
writeln('Aborting due to user input'
);