Skip to content

Commit

Permalink
Merge pull request #7561 from nextcloud/fix_7548
Browse files Browse the repository at this point in the history
Let DI handle the background job
  • Loading branch information
rullzer authored Dec 18, 2017
2 parents cb54330 + 0b71369 commit 4ed12ff
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,16 +1093,6 @@ public function __construct($webRoot, \OC\Config $config) {
return new CloudIdManager();
});

/* To trick DI since we don't extend the DIContainer here */
$this->registerService(CleanPreviewsBackgroundJob::class, function (Server $c) {
return new CleanPreviewsBackgroundJob(
$c->getRootFolder(),
$c->getLogger(),
$c->getJobList(),
new TimeFactory()
);
});

$this->registerAlias(\OCP\AppFramework\Utility\IControllerMethodReflector::class, \OC\AppFramework\Utility\ControllerMethodReflector::class);
$this->registerAlias('ControllerMethodReflector', \OCP\AppFramework\Utility\IControllerMethodReflector::class);

Expand Down

0 comments on commit 4ed12ff

Please sign in to comment.