aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Jobs/CleanUp.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-10-26 14:44:15 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-10-26 16:05:28 +0100
commitfd1fd5afa4712166cbb136d4df197bf7e37545af (patch)
tree7dcf7f64c5e3b409e5c5fc40681965a42a4d47b9 /apps/user_ldap/lib/Jobs/CleanUp.php
parent951887e922bfc47613f0cfda5e7798df2b4286d6 (diff)
downloadnextcloud-server-fd1fd5afa4712166cbb136d4df197bf7e37545af.tar.gz
nextcloud-server-fd1fd5afa4712166cbb136d4df197bf7e37545af.zip
user share manager to determine share ownership
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Jobs/CleanUp.php')
-rw-r--r--apps/user_ldap/lib/Jobs/CleanUp.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/Jobs/CleanUp.php b/apps/user_ldap/lib/Jobs/CleanUp.php
index 6bb44b3e6ae..8470c4793bb 100644
--- a/apps/user_ldap/lib/Jobs/CleanUp.php
+++ b/apps/user_ldap/lib/Jobs/CleanUp.php
@@ -30,7 +30,6 @@ namespace OCA\User_LDAP\Jobs;
use OC\BackgroundJob\TimedJob;
use OCA\User_LDAP\Helper;
-use OCA\User_LDAP\LDAP;
use OCA\User_LDAP\Mapping\UserMapping;
use OCA\User_LDAP\User\DeletedUsersIndex;
use OCA\User_LDAP\User_LDAP;
@@ -68,11 +67,12 @@ class CleanUp extends TimedJob {
/** @var DeletedUsersIndex */
protected $dui;
- public function __construct(User_Proxy $userBackend) {
+ public function __construct(User_Proxy $userBackend, DeletedUsersIndex $dui) {
$minutes = \OC::$server->getConfig()->getSystemValue(
'ldapUserCleanupInterval', (string)$this->defaultIntervalMin);
$this->setInterval((int)$minutes * 60);
$this->userBackend = $userBackend;
+ $this->dui = $dui;
}
/**
@@ -115,9 +115,6 @@ class CleanUp extends TimedJob {
if (isset($arguments['deletedUsersIndex'])) {
$this->dui = $arguments['deletedUsersIndex'];
- } else {
- $this->dui = new DeletedUsersIndex(
- $this->ocConfig, $this->db, $this->mapping);
}
}