DI fails for bg job
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
2578a81573
commit
a7be37d735
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue