aboutsummaryrefslogtreecommitdiffstats
path: root/console.php
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2016-02-18 02:42:00 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2016-02-19 00:33:48 +0300
commit972e0c62b38d0a77023b6771c0f8867b1c33d8c4 (patch)
tree090e6730cddd908d82eda780f18e93a8563422c5 /console.php
parent99051cdbe54c6efa131498f699c1d29642885c74 (diff)
downloadnextcloud-server-972e0c62b38d0a77023b6771c0f8867b1c33d8c4.tar.gz
nextcloud-server-972e0c62b38d0a77023b6771c0f8867b1c33d8c4.zip
Add global --no-warning option to occ in order not to pollute output with warnings
Diffstat (limited to 'console.php')
-rw-r--r--console.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/console.php b/console.php
index d8c23d4ce00..eb6c84c3cf8 100644
--- a/console.php
+++ b/console.php
@@ -27,6 +27,7 @@
*/
use OC\Console\Application;
+use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
define('OC_CONSOLE', 1);
@@ -81,7 +82,7 @@ try {
}
$application = new Application(\OC::$server->getConfig(), \OC::$server->getEventDispatcher(), \OC::$server->getRequest());
- $application->loadCommands(new ConsoleOutput());
+ $application->loadCommands(new ArgvInput(), new ConsoleOutput());
$application->run();
} catch (Exception $ex) {
echo "An unhandled exception has been thrown:" . PHP_EOL;