From 97b907335a5a681d5c7a096789a37011e69d01e5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 5 Feb 2016 12:24:54 +0100 Subject: Dispatch an event when a console command is run --- console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console.php') 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) { -- cgit v1.2.3