From c164409ee7f921a96f95e1fe95d86fe07a98963e Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sat, 4 Aug 2018 21:53:50 +0200 Subject: Adds a memory limit warning for console commands if the limit is below the recommended value Signed-off-by: Michael Weimann --- console.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'console.php') 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) { -- cgit v1.2.3