diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 09:56:38 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-10 09:56:38 +0200 |
commit | 538d32fe8734f563f3116c473f770bd4277c925b (patch) | |
tree | 004d99e6d04fdf07863ce3983869805b76833b3a /settings/Application.php | |
parent | ca399406146d74f2f46f8b8815f0b3c165c996ab (diff) | |
download | nextcloud-server-538d32fe8734f563f3116c473f770bd4277c925b.tar.gz nextcloud-server-538d32fe8734f563f3116c473f770bd4277c925b.zip |
Automatic injection into the Fetchers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/Application.php')
-rw-r--r-- | settings/Application.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/settings/Application.php b/settings/Application.php index 52661c5bae2..0ca2d28dfe6 100644 --- a/settings/Application.php +++ b/settings/Application.php @@ -30,8 +30,6 @@ namespace OC\Settings; -use OC\App\AppStore\Fetcher\AppFetcher; -use OC\App\AppStore\Fetcher\CategoryFetcher; use OC\AppFramework\Utility\TimeFactory; use OC\Authentication\Token\IProvider; use OC\Server; @@ -110,26 +108,6 @@ class Application extends App { Util::getDefaultEmailAddress('no-reply') ); }); - $container->registerService(AppFetcher::class, function (IContainer $c) { - /** @var Server $server */ - $server = $c->query('ServerContainer'); - return new AppFetcher( - $server->getAppDataDir('appstore'), - $server->getHTTPClientService(), - $server->query(TimeFactory::class), - $server->getConfig() - ); - }); - $container->registerService(CategoryFetcher::class, function (IContainer $c) { - /** @var Server $server */ - $server = $c->query('ServerContainer'); - return new CategoryFetcher( - $server->getAppDataDir('appstore'), - $server->getHTTPClientService(), - $server->query(TimeFactory::class), - $server->getConfig() - ); - }); } public function register() { |