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>2019-11-15 16:26:56 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-04 10:49:38 +0300
commitad29c8a46cc0bc6e783e82cc81ea5c701c66fb98 (patch)
treee4f2c3c193747b84c4e8e6145531b204a55c3ff5 /lib/AppInfo
parent26c13bc035177ae100054e21ba97f61f6d8d5c50 (diff)
Persist provisioned accounts
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r--lib/AppInfo/BootstrapSingleton.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/AppInfo/BootstrapSingleton.php b/lib/AppInfo/BootstrapSingleton.php
index 448a2fc68..114d0f897 100644
--- a/lib/AppInfo/BootstrapSingleton.php
+++ b/lib/AppInfo/BootstrapSingleton.php
@@ -23,6 +23,7 @@
namespace OCA\Mail\AppInfo;
+use OC\Hooks\PublicEmitter;
use OCA\Mail\Contracts\IAttachmentService;
use OCA\Mail\Contracts\IAvatarService;
use OCA\Mail\Contracts\IMailManager;
@@ -34,6 +35,7 @@ use OCA\Mail\Events\DraftSavedEvent;
use OCA\Mail\Events\MessageSentEvent;
use OCA\Mail\Events\SaveDraftEvent;
use OCA\Mail\Http\Middleware\ErrorMiddleware;
+use OCA\Mail\Http\Middleware\ProvisioningMiddleware;
use OCA\Mail\Listener\AddressCollectionListener;
use OCA\Mail\Listener\DeleteDraftListener;
use OCA\Mail\Listener\DraftMailboxCreatorListener;
@@ -50,7 +52,8 @@ use OCA\Mail\Service\MailTransmission;
use OCA\Mail\Service\UserPreferenceSevice;
use OCP\AppFramework\IAppContainer;
use OCP\EventDispatcher\IEventDispatcher;
-use OCP\IContainer;
+use OCP\IUser;
+use OCP\IUserManager;
use OCP\Util;
class BootstrapSingleton {
@@ -108,6 +111,7 @@ class BootstrapSingleton {
$container->registerAlias('ErrorMiddleware', ErrorMiddleware::class);
$container->registerMiddleWare('ErrorMiddleware');
+ $container->registerMiddleWare(ProvisioningMiddleware::class);
$container->registerAlias(IGroupService::class, NextcloudGroupService::class);
}