summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-22 11:02:40 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-22 11:02:40 +0100
commit31c5848e51e8a61e0f6c9931efa15ff80681e0e1 (patch)
tree38ee1af18990062850a70e443862c2b41436ecc9 /lib
parent9ea7ae6f872ab9824fd5afd320a8c9ebb17fc2fc (diff)
downloadnextcloud-server-31c5848e51e8a61e0f6c9931efa15ff80681e0e1.tar.gz
nextcloud-server-31c5848e51e8a61e0f6c9931efa15ff80681e0e1.zip
Allow automatic injection of the Manager
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/dependencyinjection/dicontainer.php4
-rw-r--r--lib/public/iservercontainer.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/appframework/dependencyinjection/dicontainer.php b/lib/private/appframework/dependencyinjection/dicontainer.php
index 8fc52141d5b..10cff1b68a2 100644
--- a/lib/private/appframework/dependencyinjection/dicontainer.php
+++ b/lib/private/appframework/dependencyinjection/dicontainer.php
@@ -174,6 +174,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getNavigationManager();
});
+ $this->registerService('OCP\\Notification\IManager', function($c) {
+ return $this->getServer()->getNotificationManager();
+ });
+
$this->registerService('OCP\\IPreview', function($c) {
return $this->getServer()->getPreviewManager();
});
diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php
index 259f991414a..eb4498a1a24 100644
--- a/lib/public/iservercontainer.php
+++ b/lib/public/iservercontainer.php
@@ -469,7 +469,7 @@ interface IServerContainer {
* Get the Notification Manager
*
* @return \OCP\Notification\IManager
- * @since 8.2.0
+ * @since 9.0.0
*/
public function getNotificationManager();