Skip to content

Commit 10a700c

Browse files
committed
bug #900 [Store] Fix DropStoreCommand and SetupStoreCommand when no store are given (lyrixx)
This PR was merged into the main branch. Discussion ---------- [Store] Fix DropStoreCommand and SetupStoreCommand when no store are given | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT `initialize()` is not done for that! Commits ------- 993aefe [Store] Fix DropStoreCommand and SetupStoreCommand when no store are given
2 parents b3e2d89 + 993aefe commit 10a700c

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
@@ -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 setup.', $storeName));
7777
}
78-
}
7978

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

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

0 commit comments

Comments
 (0)