Browse Source

Let DI handle the magic

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
master^2
Roeland Jago Douma 2 years ago
parent
commit
ecfac31c21
No known key found for this signature in database GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 14 deletions
  1. +1
    -14
      lib/AppInfo/Application.php

+ 1
- 14
lib/AppInfo/Application.php View File

@@ -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()
);
}
);
}
}
}

Loading…
Cancel
Save