diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-09-10 15:26:36 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-10 15:26:36 +0200 |
commit | fb717f254fe81065912c13e0907ba374c8167f98 (patch) | |
tree | 1a34b7c8bed92bb5686d73a1521998b2057276cf /lib/private/server.php | |
parent | 89cd9295600f6707579240f3f010d4b75a2d85cd (diff) | |
parent | 38001d824b142ca9c47f2afafce91ab8b76f1a9a (diff) | |
download | nextcloud-server-fb717f254fe81065912c13e0907ba374c8167f98.tar.gz nextcloud-server-fb717f254fe81065912c13e0907ba374c8167f98.zip |
Merge pull request #18699 from owncloud/notification-manager
Notification manager
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 346761840d6..bbf060a47b7 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -53,6 +53,7 @@ use OC\Lock\DBLockingProvider; use OC\Lock\MemcacheLockingProvider; use OC\Lock\NoopLockingProvider; use OC\Mail\Mailer; +use OC\Notification\Manager; use OC\Security\CertificateManager; use OC\Security\Crypto; use OC\Security\Hasher; @@ -473,6 +474,9 @@ class Server extends SimpleContainer implements IServerContainer { $c->getDatabaseConnection() ); }); + $this->registerService('NotificationManager', function() { + return new Manager(); + }); $this->registerService('CapabilitiesManager', function (Server $c) { $manager = new \OC\CapabilitiesManager(); $manager->registerCapability(function() use ($c) { @@ -1042,6 +1046,16 @@ class Server extends SimpleContainer implements IServerContainer { } /** + * Get the Notification Manager + * + * @return \OC\Notification\IManager + * @since 8.2.0 + */ + public function getNotificationManager() { + return $this->query('NotificationManager'); + } + + /** * @return \OC\Session\CryptoWrapper */ public function getSessionCryptoWrapper() { |