DI fails for bg job

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2016-10-03 14:20:33 +02:00
parent 2578a81573
commit a7be37d735
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 4 additions and 10 deletions

View File

@ -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');
}