]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow automatic injection of the Manager
authorJoas Schilling <nickvergessen@owncloud.com>
Fri, 22 Jan 2016 10:02:40 +0000 (11:02 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Fri, 22 Jan 2016 10:02:40 +0000 (11:02 +0100)
lib/private/appframework/dependencyinjection/dicontainer.php
lib/public/iservercontainer.php

index 8fc52141d5b8ead61e43d5b6e85740cdbc1f6d12..10cff1b68a22f0e9761fb6a170f22c9ef1e3e8ee 100644 (file)
@@ -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();
                });
index 259f991414a5c7ea5fb7fe88256a2d4ce7d6be24..eb4498a1a246fefca241663e462b99b859e200a8 100644 (file)
@@ -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();