From ecfac31c214aea014a7b5b1dad644957f30ef8d3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 22 Mar 2018 16:05:53 +0100 Subject: [PATCH] Let DI handle the magic Signed-off-by: Roeland Jago Douma --- lib/AppInfo/Application.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 0a4c0a98..71377008 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -29,18 +29,5 @@ use OCP\AppFramework\IAppContainer; class Application extends App { public function __construct (array $urlParams = array()) { parent::__construct('richdocuments', $urlParams); - $container = $this->getContainer(); - $container->registerService( - DiscoveryManager::class, - function(IAppContainer $container) { - return new DiscoveryManager( - $container->getServer()->getHTTPClientService(), - $container->getServer()->getAppDataDir('richdocuments'), - $container->getServer()->getConfig(), - $container->getServer()->getL10N('richdocuments'), - new TimeFactory() - ); - } - ); } -} \ No newline at end of file +}