summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/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_versions/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_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/register_command.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_versions/appinfo/register_command.php b/apps/files_versions/appinfo/register_command.php
index b991c72b944..bca869075aa 100644
--- a/apps/files_versions/appinfo/register_command.php
+++ b/apps/files_versions/appinfo/register_command.php
@@ -21,9 +21,14 @@
*/
+use OCA\Files_Versions\AppInfo\Application;
use OCA\Files_Versions\Command\CleanUp;
+use OCA\Files_Versions\Command\ExpireVersions;
+$app = new Application();
+$expiration = $app->getContainer()->query('Expiration');
$userManager = OC::$server->getUserManager();
$rootFolder = \OC::$server->getRootFolder();
/** @var Symfony\Component\Console\Application $application */
$application->add(new CleanUp($rootFolder, $userManager));
+$application->add(new ExpireVersions($userManager, $expiration));