diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-03-03 13:50:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 13:50:30 +0100 |
commit | f8c459f1a4ab918193d5f65c0ad1732875426d8b (patch) | |
tree | 1488a89502999dd77f0a065c4cdbe9a5eb9bc15a /lib | |
parent | e54b9d3fcdbf9a797f4ee737adc13a5db226daaa (diff) | |
parent | 552921d4291e45bd587ff05bbd222b67ebfd02c0 (diff) | |
download | nextcloud-server-f8c459f1a4ab918193d5f65c0ad1732875426d8b.tar.gz nextcloud-server-f8c459f1a4ab918193d5f65c0ad1732875426d8b.zip |
Merge pull request #3607 from nextcloud/api-to-resend-welcome-message
OCS API endpoint to resend welcome message
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 1c695c6805e..f1c6b460a92 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -53,6 +53,7 @@ use OCP\Federation\ICloudIdManager; use OCP\Files\IAppData; use OCP\Files\Mount\IMountManager; use OCP\RichObjectStrings\IValidator; +use OCP\Util; class DIContainer extends SimpleContainer implements IAppContainer { @@ -339,6 +340,14 @@ class DIContainer extends SimpleContainer implements IAppContainer { return $c->query('ServerContainer')->getWebRoot(); }); + $this->registerService('fromMailAddress', function() { + return Util::getDefaultEmailAddress('no-reply'); + }); + + $this->registerService('OC_Defaults', function ($c) { + return $c->getServer()->getThemingDefaults(); + }); + $this->registerService('OCP\Encryption\IManager', function ($c) { return $this->getServer()->getEncryptionManager(); }); |