diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-22 11:02:40 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-22 11:02:40 +0100 |
commit | 31c5848e51e8a61e0f6c9931efa15ff80681e0e1 (patch) | |
tree | 38ee1af18990062850a70e443862c2b41436ecc9 /lib/private/appframework | |
parent | 9ea7ae6f872ab9824fd5afd320a8c9ebb17fc2fc (diff) | |
download | nextcloud-server-31c5848e51e8a61e0f6c9931efa15ff80681e0e1.tar.gz nextcloud-server-31c5848e51e8a61e0f6c9931efa15ff80681e0e1.zip |
Allow automatic injection of the Manager
Diffstat (limited to 'lib/private/appframework')
-rw-r--r-- | lib/private/appframework/dependencyinjection/dicontainer.php | 4 |
1 files changed, 4 insertions, 0 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(); }); |