diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2016-05-12 10:43:43 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-12 10:43:43 +0200 |
commit | eea98f1d74daf2a20c6b08b9df743f0478c48103 (patch) | |
tree | 6e15fb6abb2f491abe8ae15a19fa3f7aafc9fe2e /apps/federation | |
parent | 1def89b2c56e372a2d01e1c208ffe97cd7756a45 (diff) | |
download | nextcloud-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/federation')
-rw-r--r-- | apps/federation/appinfo/application.php | 5 | ||||
-rw-r--r-- | apps/federation/appinfo/info.xml | 4 | ||||
-rw-r--r-- | apps/federation/appinfo/install.php | 23 | ||||
-rw-r--r-- | apps/federation/appinfo/update.php | 23 |
4 files changed, 4 insertions, 51 deletions
diff --git a/apps/federation/appinfo/application.php b/apps/federation/appinfo/application.php index 621a5d3d099..74185345329 100644 --- a/apps/federation/appinfo/application.php +++ b/apps/federation/appinfo/application.php @@ -169,11 +169,6 @@ class Application extends \OCP\AppFramework\App { }); } - public function setupCron() { - $jl = $this->getContainer()->getServer()->getJobList(); - $jl->add(new SyncJob()); - } - /** * @return SyncFederationAddressBooks */ diff --git a/apps/federation/appinfo/info.xml b/apps/federation/appinfo/info.xml index 3bd66e2954a..e51d3990cea 100644 --- a/apps/federation/appinfo/info.xml +++ b/apps/federation/appinfo/info.xml @@ -15,4 +15,8 @@ <types> <authentication/> </types> + + <background-jobs> + <job>OCA\Federation\SyncJob</job> + </background-jobs> </info> diff --git a/apps/federation/appinfo/install.php b/apps/federation/appinfo/install.php deleted file mode 100644 index f2a98d7f555..00000000000 --- a/apps/federation/appinfo/install.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -/** - * @author Thomas Müller <thomas.mueller@tmit.eu> - * - * @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/> - * - */ - -$app = new \OCA\Federation\AppInfo\Application(); -$app->setupCron(); diff --git a/apps/federation/appinfo/update.php b/apps/federation/appinfo/update.php deleted file mode 100644 index f2a98d7f555..00000000000 --- a/apps/federation/appinfo/update.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -/** - * @author Thomas Müller <thomas.mueller@tmit.eu> - * - * @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/> - * - */ - -$app = new \OCA\Federation\AppInfo\Application(); -$app->setupCron(); |