Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2018-08-04 22:53:50 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-20 16:24:10 +0300
commitc164409ee7f921a96f95e1fe95d86fe07a98963e (patch)
tree42fc9ded3b31d152242258518366da0c145b570d /console.php
parent1d2bc9c45ecbbb7521dbf14dba6560d925691f01 (diff)
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) {