From eb51f06a3b9e42686f462b9f7a56411d3fe6cb27 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 25 Jan 2018 23:16:13 +0100 Subject: Use ::class statement instead of string Signed-off-by: Morris Jobke --- lib/private/Accounts/AccountManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/Accounts') diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index 8c79de7f9e1..524d378f940 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -31,6 +31,7 @@ use OCP\IDBConnection; use OCP\IUser; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\GenericEvent; +use OC\Settings\BackgroundJobs\VerifyUserData; /** * Class AccountManager @@ -167,7 +168,7 @@ class AccountManager { */ protected function checkEmailVerification($oldData, $newData, IUser $user) { if ($oldData[self::PROPERTY_EMAIL]['value'] !== $newData[self::PROPERTY_EMAIL]['value']) { - $this->jobList->add('OC\Settings\BackgroundJobs\VerifyUserData', + $this->jobList->add(VerifyUserData::class, [ 'verificationCode' => '', 'data' => $newData[self::PROPERTY_EMAIL]['value'], -- cgit v1.2.3