diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-07-03 15:10:50 +0200 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-07-03 15:10:50 +0200 |
commit | 525745caf5c80f46522a89fefb2e6ec29acfc73c (patch) | |
tree | 0fe476902dd074fb04fed40dd41641933efbd726 /apps/files_trashbin/appinfo | |
parent | 838ddc72c14bc2a16a6b9b757c7a4419027bb67f (diff) | |
parent | 407db913de26d090567529546be2bab6424607cf (diff) | |
download | nextcloud-server-525745caf5c80f46522a89fefb2e6ec29acfc73c.tar.gz nextcloud-server-525745caf5c80f46522a89fefb2e6ec29acfc73c.zip |
Merge pull request #17140 from owncloud/trashbin_occ
add occ command to remove deleted files
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r-- | apps/files_trashbin/appinfo/register_command.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/apps/files_trashbin/appinfo/register_command.php b/apps/files_trashbin/appinfo/register_command.php new file mode 100644 index 00000000000..ae4196dd506 --- /dev/null +++ b/apps/files_trashbin/appinfo/register_command.php @@ -0,0 +1,29 @@ +<?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_Trashbin\Command\CleanUp; + +$userManager = OC::$server->getUserManager(); +$rootFolder = \OC::$server->getRootFolder(); +$dbConnection = \OC::$server->getDatabaseConnection(); +/** @var Symfony\Component\Console\Application $application */ +$application->add(new CleanUp($rootFolder, $userManager, $dbConnection)); |