diff options
author | Sander Ruitenbeek <s.ruitenbeek@getgoing.nl> | 2020-02-17 11:43:46 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-24 17:30:45 +0300 |
commit | 6b62bef928cbe392f19e2bbaabff5b17d133e6a9 (patch) | |
tree | e8730377fa2d850367f48609eef89097eab3e5cf | |
parent | 3d9cd00c7b0c5899db24e29dc088b9d885338939 (diff) |
Display notice for already enabled apps
Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
-rw-r--r-- | core/Command/App/Enable.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php index c4e2363def5..d82a71d9eb4 100644 --- a/core/Command/App/Enable.php +++ b/core/Command/App/Enable.php @@ -105,6 +105,10 @@ class Enable extends Command implements CompletionAwareInterface { return $group->getDisplayName(); }, $groupIds); + if ($this->appManager->isInstalled($appId) && $groupIds === []) { + $output->writeln($appId . ' already enabled'); + return; + } try { /** @var Installer $installer */ |