aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-02-06 11:22:09 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-02-08 10:28:29 +0100
commit166773879ba20bf7b81f3996a7c4e2a9ff7ee16d (patch)
treeee8c3115167e71c115f56479612be08c574761f1 /apps/user_ldap/lib
parent9e9040196f94e9650ce847e9feb9f23ad8d19ada (diff)
downloadnextcloud-server-166773879ba20bf7b81f3996a7c4e2a9ff7ee16d.tar.gz
nextcloud-server-166773879ba20bf7b81f3996a7c4e2a9ff7ee16d.zip
fix!: Migrate jobs away from deprecated interfaces
BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/Migration/UUIDFix.php9
-rw-r--r--apps/user_ldap/lib/Migration/UUIDFixGroup.php4
-rw-r--r--apps/user_ldap/lib/Migration/UUIDFixUser.php4
3 files changed, 9 insertions, 8 deletions
diff --git a/apps/user_ldap/lib/Migration/UUIDFix.php b/apps/user_ldap/lib/Migration/UUIDFix.php
index 74ab65d347c..e36ddd1140f 100644
--- a/apps/user_ldap/lib/Migration/UUIDFix.php
+++ b/apps/user_ldap/lib/Migration/UUIDFix.php
@@ -23,17 +23,14 @@
*/
namespace OCA\User_LDAP\Migration;
-use OC\BackgroundJob\QueuedJob;
use OCA\User_LDAP\Mapping\AbstractMapping;
use OCA\User_LDAP\Proxy;
use OCA\User_LDAP\User_Proxy;
+use OCP\BackgroundJob\QueuedJob;
abstract class UUIDFix extends QueuedJob {
- /** @var AbstractMapping */
- protected $mapper;
-
- /** @var Proxy */
- protected $proxy;
+ protected AbstractMapping $mapper;
+ protected Proxy $proxy;
public function run($argument) {
$isUser = $this->proxy instanceof User_Proxy;
diff --git a/apps/user_ldap/lib/Migration/UUIDFixGroup.php b/apps/user_ldap/lib/Migration/UUIDFixGroup.php
index a90dcb5a938..c0ed3f9d48d 100644
--- a/apps/user_ldap/lib/Migration/UUIDFixGroup.php
+++ b/apps/user_ldap/lib/Migration/UUIDFixGroup.php
@@ -24,9 +24,11 @@ namespace OCA\User_LDAP\Migration;
use OCA\User_LDAP\Group_Proxy;
use OCA\User_LDAP\Mapping\GroupMapping;
+use OCP\AppFramework\Utility\ITimeFactory;
class UUIDFixGroup extends UUIDFix {
- public function __construct(GroupMapping $mapper, Group_Proxy $proxy) {
+ public function __construct(ITimeFactory $time, GroupMapping $mapper, Group_Proxy $proxy) {
+ parent::__construct($time);
$this->mapper = $mapper;
$this->proxy = $proxy;
}
diff --git a/apps/user_ldap/lib/Migration/UUIDFixUser.php b/apps/user_ldap/lib/Migration/UUIDFixUser.php
index bd6aed44a0a..3f811e434ad 100644
--- a/apps/user_ldap/lib/Migration/UUIDFixUser.php
+++ b/apps/user_ldap/lib/Migration/UUIDFixUser.php
@@ -24,9 +24,11 @@ namespace OCA\User_LDAP\Migration;
use OCA\User_LDAP\Mapping\UserMapping;
use OCA\User_LDAP\User_Proxy;
+use OCP\AppFramework\Utility\ITimeFactory;
class UUIDFixUser extends UUIDFix {
- public function __construct(UserMapping $mapper, User_Proxy $proxy) {
+ public function __construct(ITimeFactory $time, UserMapping $mapper, User_Proxy $proxy) {
+ parent::__construct($time);
$this->mapper = $mapper;
$this->proxy = $proxy;
}