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/user_ldap/appinfo | |
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/user_ldap/appinfo')
-rw-r--r-- | apps/user_ldap/appinfo/info.xml | 5 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/install.php | 3 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/update.php | 24 |
3 files changed, 5 insertions, 27 deletions
diff --git a/apps/user_ldap/appinfo/info.xml b/apps/user_ldap/appinfo/info.xml index a1bb8a47687..b84a33f75a4 100644 --- a/apps/user_ldap/appinfo/info.xml +++ b/apps/user_ldap/appinfo/info.xml @@ -20,4 +20,9 @@ A user logs into ownCloud with their LDAP or AD credentials, and is granted acce <lib>ldap</lib> <owncloud min-version="9.1" max-version="9.1" /> </dependencies> + + <background-jobs> + <job>OCA\user_ldap\lib\Jobs</job> + <job>\OCA\User_LDAP\Jobs\CleanUp</job> + </background-jobs> </info> diff --git a/apps/user_ldap/appinfo/install.php b/apps/user_ldap/appinfo/install.php index 49c8f808ef3..71112682526 100644 --- a/apps/user_ldap/appinfo/install.php +++ b/apps/user_ldap/appinfo/install.php @@ -24,6 +24,3 @@ $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doSet'); if($state === 'doSet') { OCP\Config::setSystemValue('ldapIgnoreNamingRules', false); } - -OCP\Backgroundjob::registerJob('OCA\user_ldap\lib\Jobs'); -OCP\Backgroundjob::registerJob('\OCA\User_LDAP\Jobs\CleanUp'); diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php deleted file mode 100644 index 82f3e86bd33..00000000000 --- a/apps/user_ldap/appinfo/update.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/> - * - */ - -OCP\Backgroundjob::registerJob('OCA\user_ldap\lib\Jobs'); -OCP\Backgroundjob::registerJob('\OCA\User_LDAP\Jobs\CleanUp'); |