Skip to content

Commit 993aefe

Browse files
committed
[Store] Fix DropStoreCommand and SetupStoreCommand when no store are given
1 parent f9da9c0 commit 993aefe

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/store/src/Command/DropStoreCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function configure(): void
6464
;
6565
}
6666

67-
protected function initialize(InputInterface $input, OutputInterface $output): void
67+
protected function execute(InputInterface $input, OutputInterface $output): int
6868
{
6969
$storeName = $input->getArgument('store');
7070
if (!$this->stores->has($storeName)) {
@@ -75,10 +75,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
7575
if (!$store instanceof ManagedStoreInterface) {
7676
throw new RuntimeException(\sprintf('The "%s" store does not support to be dropped.', $storeName));
7777
}
78-
}
7978

80-
protected function execute(InputInterface $input, OutputInterface $output): int
81-
{
8279
$io = new SymfonyStyle($input, $output);
8380

8481
if (!$input->getOption('force')) {

src/store/src/Command/SetupStoreCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function configure(): void
6262
;
6363
}
6464

65-
protected function initialize(InputInterface $input, OutputInterface $output): void
65+
protected function execute(InputInterface $input, OutputInterface $output): int
6666
{
6767
$storeName = $input->getArgument('store');
6868
if (!$this->stores->has($storeName)) {
@@ -73,10 +73,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
7373
if (!$store instanceof ManagedStoreInterface) {
7474
throw new RuntimeException(\sprintf('The "%s" store does not support setup.', $storeName));
7575
}
76-
}
7776

78-
protected function execute(InputInterface $input, OutputInterface $output): int
79-
{
8077
$io = new SymfonyStyle($input, $output);
8178

8279
$storeName = $input->getArgument('store');

0 commit comments

Comments
 (0)