protected function configure(): void
{ $this->
addArgument('strategy', InputArgument::OPTIONAL, 'The strategy that should be applied'
);
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $io =
new ShopwareStyle($input,
$output);
$availableStrategies =
$this->appUrlChangeResolver->
getAvailableStrategies();
$strategy =
$input->
getArgument('strategy'
);
if ($strategy === null || !\
array_key_exists($strategy,
$availableStrategies)) { if ($strategy !== null
) { $io->
note(sprintf('Strategy with name: "%s" not found.',
$strategy));
} $strategy =
$io->
choice( 'Choose what strategy should be applied, to resolve the app url change?',
$availableStrategies );
}