diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-12-04 15:01:57 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-12-12 11:10:45 +0300 |
commit | 10c7e04d0510f34c337452d3dfac03e2e016b041 (patch) | |
tree | fcb5caebc3f2936bf159c58ec7514f3630a730b4 /lib/AppInfo | |
parent | 1d77fc9761a0001b932397091ead7392fec769ed (diff) |
Add opt-out setting for Gravatar integration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/Application.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 3ef9e3d81..15229fab6 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -26,10 +26,12 @@ use OCA\Mail\Contracts\IAttachmentService; use OCA\Mail\Contracts\IAvatarService; use OCA\Mail\Contracts\IMailManager; use OCA\Mail\Contracts\IMailTransmission; +use OCA\Mail\Contracts\IUserPreferences; use OCA\Mail\Service\Attachment\AttachmentService; use OCA\Mail\Service\AvatarService; use OCA\Mail\Service\MailManager; use OCA\Mail\Service\MailTransmission; +use OCA\Mail\Service\UserPreferenceSevice; use OCP\AppFramework\App; use OCP\Util; @@ -48,9 +50,10 @@ class Application extends App { $testSmtp = $transport === 'smtp'; $container->registerAlias(IAvatarService::class, AvatarService::class); - $container->registerAlias(IMailManager::class, MailManager::class); $container->registerAlias(IAttachmentService::class, AttachmentService::class); + $container->registerAlias(IMailManager::class, MailManager::class); $container->registerAlias(IMailTransmission::class, MailTransmission::class); + $container->registerAlias(IUserPreferences::class, UserPreferenceSevice::class); $container->registerService('OCP\ISession', function ($c) { return $c->getServer()->getSession(); }); |