diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-18 20:40:54 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-18 20:42:06 +0100 |
commit | 0b7136940ee98ce1eb6038c7f8982e2c2ec5e963 (patch) | |
tree | 2e493503806b7a70e4620cab0eced619544de8cf /lib/private/Server.php | |
parent | cb5433062fab266c595f7ebd96a7f3f14e56034d (diff) | |
download | nextcloud-server-0b7136940ee98ce1eb6038c7f8982e2c2ec5e963.tar.gz nextcloud-server-0b7136940ee98ce1eb6038c7f8982e2c2ec5e963.zip |
Let DI handle the background job
Fixes #7548
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 6898e93e3bb..723f9a69185 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -1093,16 +1093,6 @@ class Server extends ServerContainer implements IServerContainer { 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); |