Skip to content

Commit

Permalink
Display notice for already enabled apps
Browse files Browse the repository at this point in the history
Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>

Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
  • Loading branch information
sndrr committed Feb 17, 2020
1 parent 3e0dc5c commit 44cb861
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Command/App/Enable.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ private function enableApp(string $appId, array $groupIds, bool $forceEnable, Ou
return $group->getDisplayName();
}, $groupIds);

if ($this->appManager->isInstalled($appId) && $groupIds === []) {
$output->writeln($appId . ' already enabled');
return;
}

try {
/** @var Installer $installer */
Expand Down

0 comments on commit 44cb861

Please sign in to comment.