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-01-04 15:14:26 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-02-09 22:36:57 +0300
commit36f52fc3f9fb2426fa0005cea7782f1c46b12a44 (patch)
tree6180596a0e7bfd0b07c1a642062904d010e647d8 /lib/AppInfo
parentdb76ae55377ab7b67ac401749c8f5144da925aca (diff)
Refactor server-side folder management implementation
* better OOP architecture * dependency injection everywhere * abstraction where it made sense * SRP applied as much as possible * added a bunch of tests for the new code * REST API compatible to old implementation * new code is not optimized * old code was not removed 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 e2d68e175..637f59cd9 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -22,6 +22,8 @@
namespace OCA\Mail\AppInfo;
+use OCA\Mail\Contracts\IMailManager;
+use OCA\Mail\Service\MailManager;
use OCP\AppFramework\App;
use OCP\Util;
@@ -35,6 +37,7 @@ class Application extends App {
$transport = $container->getServer()->getConfig()->getSystemValue('app.mail.transport', 'smtp');
$testSmtp = $transport === 'smtp';
+ $container->registerAlias(IMailManager::class, MailManager::class);
$container->registerService('OCP\ISession', function ($c) {
return $c->getServer()->getSession();
});