diff --git a/src/store/src/Command/DropStoreCommand.php b/src/store/src/Command/DropStoreCommand.php index e9651c1b8..39a8f2eb6 100644 --- a/src/store/src/Command/DropStoreCommand.php +++ b/src/store/src/Command/DropStoreCommand.php @@ -64,7 +64,7 @@ protected function configure(): void ; } - protected function initialize(InputInterface $input, OutputInterface $output): void + protected function execute(InputInterface $input, OutputInterface $output): int { $storeName = $input->getArgument('store'); if (!$this->stores->has($storeName)) { @@ -75,10 +75,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v if (!$store instanceof ManagedStoreInterface) { throw new RuntimeException(\sprintf('The "%s" store does not support to be dropped.', $storeName)); } - } - protected function execute(InputInterface $input, OutputInterface $output): int - { $io = new SymfonyStyle($input, $output); if (!$input->getOption('force')) { diff --git a/src/store/src/Command/SetupStoreCommand.php b/src/store/src/Command/SetupStoreCommand.php index 51bca2c12..7f5238dec 100644 --- a/src/store/src/Command/SetupStoreCommand.php +++ b/src/store/src/Command/SetupStoreCommand.php @@ -62,7 +62,7 @@ protected function configure(): void ; } - protected function initialize(InputInterface $input, OutputInterface $output): void + protected function execute(InputInterface $input, OutputInterface $output): int { $storeName = $input->getArgument('store'); if (!$this->stores->has($storeName)) { @@ -73,10 +73,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v if (!$store instanceof ManagedStoreInterface) { throw new RuntimeException(\sprintf('The "%s" store does not support setup.', $storeName)); } - } - protected function execute(InputInterface $input, OutputInterface $output): int - { $io = new SymfonyStyle($input, $output); $storeName = $input->getArgument('store');