summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/NC11
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-03 14:20:33 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-05 11:00:17 +0200
commita7be37d73539bac8fd634279e225051b7ab9a8dd (patch)
treee6f4e1f16966570e74b440a0ee160968cbbc4b43 /lib/private/Repair/NC11
parent2578a8157386612dd225d19f44b208ccde6e8fad (diff)
downloadnextcloud-server-a7be37d73539bac8fd634279e225051b7ab9a8dd.tar.gz
nextcloud-server-a7be37d73539bac8fd634279e225051b7ab9a8dd.zip
DI fails for bg job
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Repair/NC11')
-rw-r--r--lib/private/Repair/NC11/MoveAvatarBackgroundJob.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/private/Repair/NC11/MoveAvatarBackgroundJob.php b/lib/private/Repair/NC11/MoveAvatarBackgroundJob.php
index 4c16196f6e9..993235146c9 100644
--- a/lib/private/Repair/NC11/MoveAvatarBackgroundJob.php
+++ b/lib/private/Repair/NC11/MoveAvatarBackgroundJob.php
@@ -48,17 +48,11 @@ class MoveAvatarsBackgroundJob extends QueuedJob {
/**
* MoveAvatars constructor.
- *
- * @param IUserManager $userManager
- * @param IRootFolder $rootFolder
- * @param ILogger $logger
*/
- public function __construct(IUserManager $userManager,
- IRootFolder $rootFolder,
- ILogger $logger) {
- $this->userManager = $userManager;
- $this->rootFolder = $rootFolder;
- $this->logger = $logger;
+ public function __construct() {
+ $this->userManager = \OC::$server->getUserManager();
+ $this->rootFolder = \OC::$server->getRootFolder();
+ $this->logger = \OC::$server->getLogger();
$this->appData = \OC::$server->getAppDataDir('avatar');
}