summaryrefslogtreecommitdiffstats
path: root/core/command/app
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-07 15:04:36 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-07 15:04:36 +0100
commitc55da1fc8d6f3487d89be1ad197a9f54c5e930b8 (patch)
treeb5fc3c7395eb1963a2f3629d2de7e8dfbeec1dfa /core/command/app
parent83855c073bda187084ad644541f5c46465f16b8e (diff)
downloadnextcloud-server-c55da1fc8d6f3487d89be1ad197a9f54c5e930b8.tar.gz
nextcloud-server-c55da1fc8d6f3487d89be1ad197a9f54c5e930b8.zip
Add a warning to the app:check-code if the version is missing
Diffstat (limited to 'core/command/app')
-rw-r--r--core/command/app/checkcode.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/command/app/checkcode.php b/core/command/app/checkcode.php
index e186d458c01..bc3ae07890c 100644
--- a/core/command/app/checkcode.php
+++ b/core/command/app/checkcode.php
@@ -131,6 +131,10 @@ class CheckCode extends Command {
}
});
+ $infoChecker->listen('InfoChecker', 'missingRequirement', function($minMax) use ($output) {
+ $output->writeln("<comment>ownCloud $minMax version requirement missing (will be an error in ownCloud 11 and later)</comment>");
+ });
+
$infoChecker->listen('InfoChecker', 'duplicateRequirement', function($minMax) use ($output) {
$output->writeln("<error>Duplicate $minMax ownCloud version requirement found</error>");
});