summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-05-12 10:43:43 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-12 10:43:43 +0200
commiteea98f1d74daf2a20c6b08b9df743f0478c48103 (patch)
tree6e15fb6abb2f491abe8ae15a19fa3f7aafc9fe2e /apps/files_sharing
parent1def89b2c56e372a2d01e1c208ffe97cd7756a45 (diff)
downloadnextcloud-server-eea98f1d74daf2a20c6b08b9df743f0478c48103.tar.gz
nextcloud-server-eea98f1d74daf2a20c6b08b9df743f0478c48103.zip
Background jobs from info.xml (#24582)
* Move background job registration of Federation to info.xml * Move background registration of Files app to info.xml * Move background job registration of files_sharing to info.xml * Move background job registration of files_trashbin to info.xml * Move background job registration of files_versions to info.xml * Move background job registration from user_ldap to info.xml
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/appinfo/info.xml5
-rw-r--r--apps/files_sharing/appinfo/install.php24
-rw-r--r--apps/files_sharing/appinfo/update.php3
3 files changed, 5 insertions, 27 deletions
diff --git a/apps/files_sharing/appinfo/info.xml b/apps/files_sharing/appinfo/info.xml
index 6b09e73a022..7e49e267275 100644
--- a/apps/files_sharing/appinfo/info.xml
+++ b/apps/files_sharing/appinfo/info.xml
@@ -20,4 +20,9 @@ Turning the feature off removes shared files and folders on the server for all s
<public>
<files>public.php</files>
</public>
+
+ <background-jobs>
+ <job>OCA\Files_sharing\Lib\DeleteOrphanedSharesJob</job>
+ <job>OCA\Files_sharing\ExpireSharesJob</job>
+ </background-jobs>
</info>
diff --git a/apps/files_sharing/appinfo/install.php b/apps/files_sharing/appinfo/install.php
deleted file mode 100644
index 33bbc8e2a84..00000000000
--- a/apps/files_sharing/appinfo/install.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * @author Joas Schilling <nickvergessen@owncloud.com>
- * @author Morris Jobke <hey@morrisjobke.de>
- *
- * @copyright Copyright (c) 2016, 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/>
- *
- */
-
-\OC::$server->getJobList()->add('OCA\Files_sharing\Lib\DeleteOrphanedSharesJob');
-\OC::$server->getJobList()->add('OCA\Files_sharing\ExpireSharesJob');
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php
index adfff183b3f..afa6f4383a3 100644
--- a/apps/files_sharing/appinfo/update.php
+++ b/apps/files_sharing/appinfo/update.php
@@ -31,6 +31,3 @@ if (version_compare($installedVersion, '0.9.1', '<')) {
$m->removeReShares();
$m->updateInitiatorInfo();
}
-
-\OC::$server->getJobList()->add('OCA\Files_sharing\Lib\DeleteOrphanedSharesJob');
-\OC::$server->getJobList()->add('OCA\Files_sharing\ExpireSharesJob');