Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-07-04 14:35:46 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-07-04 14:35:46 +0300
commit9bb9dd061627a362ed83c7e6e2ae324bc0af62c5 (patch)
tree36c2b0f5454aa958ac1f7b08675328c7d51078d0 /lib/AppInfo
parentcbf136963b75336789506dfe17e5d24b2137005d (diff)
Fix DI and typos
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r--lib/AppInfo/Application.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 7d55dcac2..db99dd372 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -22,7 +22,9 @@
namespace OCA\Mail\AppInfo;
+use OCA\Mail\Contracts\IAttachmentService;
use OCA\Mail\Contracts\IMailManager;
+use OCA\Mail\Service\Attachment\AttachmentService;
use OCA\Mail\Service\MailManager;
use OCP\AppFramework\App;
use OCP\Util;
@@ -42,6 +44,7 @@ class Application extends App {
$testSmtp = $transport === 'smtp';
$container->registerAlias(IMailManager::class, MailManager::class);
+ $container->registerAlias(IAttachmentService::class, AttachmentService::class);
$container->registerService('OCP\ISession', function ($c) {
return $c->getServer()->getSession();
});