call OC_App::loadApps(); to load all commands of all apps and related functionality

This commit is contained in:
Thomas Müller 2014-03-25 17:46:05 +01:00
parent f9279ac77a
commit 8b86b94d47
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ if (!OC::$CLI) {
exit(0);
}
// load all apps to get all api routes properly setup
OC_App::loadApps();
$defaults = new OC_Defaults;
$application = new Application($defaults->getName(), \OC_Util::getVersionString());
require_once 'core/register_command.php';