Dispatch an event when a console command is run

This commit is contained in:
Joas Schilling
2016-02-05 12:24:54 +01:00
parent 0ed2108b7f
commit 97b907335a
3 changed files with 87 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ 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());
$application = new Application(\OC::$server->getConfig(), \OC::$server->getEventDispatcher(), \OC::$server->getRequest());
$application->loadCommands(new ConsoleOutput());
$application->run();
} catch (Exception $ex) {