aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 1d3d588e9fc..0963f8feb45 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -73,6 +73,7 @@ use OC\Lockdown\LockdownManager;
use OC\Mail\Mailer;
use OC\Memcache\ArrayCache;
use OC\Notification\Manager;
+use OC\Repair\NC11\CleanPreviewsBackgroundJob;
use OC\RichObjectStrings\Validator;
use OC\Security\Bruteforce\Throttler;
use OC\Security\CertificateManager;
@@ -798,9 +799,20 @@ class Server extends ServerContainer implements IServerContainer {
$c->getSystemConfig()
);
});
+
$this->registerService('LockdownManager', function (Server $c) {
return new LockdownManager();
});
+
+ /* 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()
+ );
+ });
}
/**