|
|
|
@ -25,6 +25,11 @@ if (!OC::$CLI) { |
|
|
|
|
|
|
|
$defaults = new OC_Defaults; |
|
|
|
$application = new Application($defaults->getName(), \OC_Util::getVersionString()); |
|
|
|
$application->add(new OC\Core\Command\Status); |
|
|
|
$application->add(new OCA\Files\Command\Scan(OC_User::getManager())); |
|
|
|
require_once 'core/register_command.php'; |
|
|
|
foreach(OC_App::getEnabledApps() as $app) { |
|
|
|
$file = OC_App::getAppPath($app).'/appinfo/register_command.php'; |
|
|
|
if(file_exists($file)) { |
|
|
|
require $file; |
|
|
|
} |
|
|
|
} |
|
|
|
$application->run(); |