diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-16 14:34:31 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-16 16:56:27 +0200 |
commit | b645d795d2d1ff73bfc8090f286e67fe7c8e19de (patch) | |
tree | 96820f8f93c0e7d551e760efad40dbb272f9e260 /apps/files_versions/appinfo | |
parent | 829f6474ff4cd4e39647bcb5b68b5e5c0fb1b483 (diff) | |
download | nextcloud-server-b645d795d2d1ff73bfc8090f286e67fe7c8e19de.tar.gz nextcloud-server-b645d795d2d1ff73bfc8090f286e67fe7c8e19de.zip |
add occ tool to delete versions
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r-- | apps/files_versions/appinfo/register_command.php | 28 |
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)); |