summaryrefslogtreecommitdiffstats
path: root/console.php
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2018-08-04 21:53:50 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-20 15:24:10 +0200
commitc164409ee7f921a96f95e1fe95d86fe07a98963e (patch)
tree42fc9ded3b31d152242258518366da0c145b570d /console.php
parent1d2bc9c45ecbbb7521dbf14dba6560d925691f01 (diff)
downloadnextcloud-server-c164409ee7f921a96f95e1fe95d86fe07a98963e.tar.gz
nextcloud-server-c164409ee7f921a96f95e1fe95d86fe07a98963e.zip
Adds a memory limit warning for console commands if the limit is below the recommended value
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'console.php')
-rw-r--r--console.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/console.php b/console.php
index 67856a17b3b..1d5021edef0 100644
--- a/console.php
+++ b/console.php
@@ -85,7 +85,13 @@ try {
echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php" . PHP_EOL;
}
- $application = new Application(\OC::$server->getConfig(), \OC::$server->getEventDispatcher(), \OC::$server->getRequest(), \OC::$server->getLogger());
+ $application = new Application(
+ \OC::$server->getConfig(),
+ \OC::$server->getEventDispatcher(),
+ \OC::$server->getRequest(),
+ \OC::$server->getLogger(),
+ \OC::$server->query(\OC\MemoryInfo::class)
+ );
$application->loadCommands(new ArgvInput(), new ConsoleOutput());
$application->run();
} catch (Exception $ex) {