summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-12 16:46:41 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-25 16:06:06 +0200
commitdb2e9df5f000b129e9dad2ce801baada0a17a8a4 (patch)
treea9b9bda0c6d709f5150eb7e0e63a0f8d254dc17f /apps/user_ldap
parentc807a26bd843d899614d99ffa7f5d854429eecb4 (diff)
downloadnextcloud-server-db2e9df5f000b129e9dad2ce801baada0a17a8a4.tar.gz
nextcloud-server-db2e9df5f000b129e9dad2ce801baada0a17a8a4.zip
Move Job to a better class name
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/appinfo/info.xml4
-rw-r--r--apps/user_ldap/lib/Jobs/UpdateGroups.php (renamed from apps/user_ldap/lib/jobs.php)8
2 files changed, 7 insertions, 5 deletions
diff --git a/apps/user_ldap/appinfo/info.xml b/apps/user_ldap/appinfo/info.xml
index 9805996b56f..23dbc5278e5 100644
--- a/apps/user_ldap/appinfo/info.xml
+++ b/apps/user_ldap/appinfo/info.xml
@@ -24,7 +24,7 @@ A user logs into ownCloud with their LDAP or AD credentials, and is granted acce
<namespace>User_LDAP</namespace>
<background-jobs>
- <job>OCA\user_ldap\lib\Jobs</job>
- <job>\OCA\User_LDAP\Jobs\CleanUp</job>
+ <job>OCA\user_ldap\Jobs\UpdateGroups</job>
+ <job>OCA\User_LDAP\Jobs\CleanUp</job>
</background-jobs>
</info>
diff --git a/apps/user_ldap/lib/jobs.php b/apps/user_ldap/lib/Jobs/UpdateGroups.php
index 9b0398c068d..3ea74959f5c 100644
--- a/apps/user_ldap/lib/jobs.php
+++ b/apps/user_ldap/lib/Jobs/UpdateGroups.php
@@ -26,8 +26,10 @@
*
*/
-namespace OCA\user_ldap\lib;
+namespace OCA\User_LDAP\Jobs;
+use OCA\User_LDAP\Access;
+use OCA\User_LDAP\Connection;
use OCA\User_LDAP\FilesystemHelper;
use OCA\User_LDAP\Helper;
use OCA\User_LDAP\LDAP;
@@ -36,7 +38,7 @@ use OCA\User_LDAP\Mapping\GroupMapping;
use OCA\User_LDAP\Mapping\UserMapping;
use OCA\User_LDAP\User\Manager;
-class Jobs extends \OC\BackgroundJob\TimedJob {
+class UpdateGroups extends \OC\BackgroundJob\TimedJob {
static private $groupsFromDB;
static private $groupBE;
@@ -50,7 +52,7 @@ class Jobs extends \OC\BackgroundJob\TimedJob {
* @param mixed $argument
*/
public function run($argument){
- Jobs::updateGroups();
+ self::updateGroups();
}
static public function updateGroups() {