diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-05 12:24:54 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-05 12:24:54 +0100 |
commit | 97b907335a5a681d5c7a096789a37011e69d01e5 (patch) | |
tree | 81648de27f20f83d994d6000240b299cbfed0382 /console.php | |
parent | 0ed2108b7f3a8537643b89823d628e4db18ecf61 (diff) | |
download | nextcloud-server-97b907335a5a681d5c7a096789a37011e69d01e5.tar.gz nextcloud-server-97b907335a5a681d5c7a096789a37011e69d01e5.zip |
Dispatch an event when a console command is run
Diffstat (limited to 'console.php')
-rw-r--r-- | console.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console.php b/console.php index 2073654fa8d..d08d400c051 100644 --- a/console.php +++ b/console.php @@ -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) { |