summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/appinfo
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-08-23 14:03:05 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-29 14:30:40 +0200
commit297d2e48ad0df78f00e66be23fd19b1360c37272 (patch)
tree5f483ce773515f1f2440090c684fab34697c8d10 /apps/files_trashbin/appinfo
parent3647fbe7cd86e743b059889d69b03fcf8207780f (diff)
downloadnextcloud-server-297d2e48ad0df78f00e66be23fd19b1360c37272.tar.gz
nextcloud-server-297d2e48ad0df78f00e66be23fd19b1360c37272.zip
Add occ command to expire the trashbin (#25878)
* Add occ command to expire the trashbin * Fix versions folder in setup check
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r--apps/files_trashbin/appinfo/register_command.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_trashbin/appinfo/register_command.php b/apps/files_trashbin/appinfo/register_command.php
index 676e3f5891c..e0dafc60cd9 100644
--- a/apps/files_trashbin/appinfo/register_command.php
+++ b/apps/files_trashbin/appinfo/register_command.php
@@ -21,10 +21,16 @@
*/
+use OCA\Files_Trashbin\AppInfo\Application;
use OCA\Files_Trashbin\Command\CleanUp;
+use OCA\Files_Trashbin\Command\ExpireTrash;
+$app = new Application();
+$expiration = $app->getContainer()->query('Expiration');
$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));
+$application->add(new ExpireTrash($userManager, $expiration));