Add global --no-warning option to occ in order not to pollute output with warnings

This commit is contained in:
Victor Dubiniuk
2016-02-18 02:42:00 +03:00
parent 99051cdbe5
commit 972e0c62b3
2 changed files with 23 additions and 2 deletions
+2 -1
View File
@@ -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;