summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 23:16:13 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-29 12:03:47 +0100
commiteb51f06a3b9e42686f462b9f7a56411d3fe6cb27 (patch)
tree0d96c86c4489b4e3fe60bcceaeb6759d856a36e9 /settings
parent1d8b90b8d3c8a85104d223b7f1d5693280370774 (diff)
downloadnextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.tar.gz
nextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.zip
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings')
-rw-r--r--settings/BackgroundJobs/VerifyUserData.php2
-rw-r--r--settings/Controller/UsersController.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/settings/BackgroundJobs/VerifyUserData.php b/settings/BackgroundJobs/VerifyUserData.php
index 8dc89830167..128a79a6683 100644
--- a/settings/BackgroundJobs/VerifyUserData.php
+++ b/settings/BackgroundJobs/VerifyUserData.php
@@ -253,7 +253,7 @@ class VerifyUserData extends Job {
* @param array $argument
*/
protected function reAddJob(IJobList $jobList, array $argument) {
- $jobList->add('OC\Settings\BackgroundJobs\VerifyUserData',
+ $jobList->add(VerifyUserData::class,
[
'verificationCode' => $argument['verificationCode'],
'data' => $argument['data'],
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 7b18eda6833..f92f073e879 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -64,6 +64,7 @@ use OCP\IAvatarManager;
use OCP\Security\ICrypto;
use OCP\Security\ISecureRandom;
use OCP\Util;
+use OC\Settings\BackgroundJobs\VerifyUserData;
/**
* @package OC\Settings\Controller
@@ -688,7 +689,7 @@ class UsersController extends Controller {
if ($onlyVerificationCode === false) {
$this->accountManager->updateUser($user, $accountData);
- $this->jobList->add('OC\Settings\BackgroundJobs\VerifyUserData',
+ $this->jobList->add(VerifyUserData::class,
[
'verificationCode' => $code,
'data' => $data,