aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-06 15:34:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-06 15:34:40 +0200
commitdba6ba252374777459ffbffc831f27c64132dd46 (patch)
treeb1033f95bd597dc8421497ec4760641e5384f372 /apps/files_versions/appinfo
parent8400bb9979fc18c00eb178c9c8c363d6cd901c0b (diff)
parentb645d795d2d1ff73bfc8090f286e67fe7c8e19de (diff)
downloadnextcloud-server-dba6ba252374777459ffbffc831f27c64132dd46.tar.gz
nextcloud-server-dba6ba252374777459ffbffc831f27c64132dd46.zip
Merge pull request #16964 from owncloud/versions_occ
add occ tool to delete versions
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/register_command.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/files_versions/appinfo/register_command.php b/apps/files_versions/appinfo/register_command.php
new file mode 100644
index 00000000000..49efdbe6190
--- /dev/null
+++ b/apps/files_versions/appinfo/register_command.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * @author Björn Schießle <schiessle@owncloud.com>
+ *
+ * @copyright Copyright (c) 2015, ownCloud, Inc.
+ * @license AGPL-3.0
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+
+use OCA\Files_Versions\Command\CleanUp;
+
+$userManager = OC::$server->getUserManager();
+$rootFolder = \OC::$server->getRootFolder();
+/** @var Symfony\Component\Console\Application $application */
+$application->add(new CleanUp($rootFolder, $userManager));