diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-28 21:53:04 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-10-28 21:55:08 +0100 |
commit | e4f53ff91b985123b171dc23db8246c017af46f6 (patch) | |
tree | 0fa3b0ab3bc4cfda9c1c555b4085ef47b0b3549a /lib/private/Group | |
parent | ef382f541c42f719b8dd30a4e0e248ef1bc39c84 (diff) | |
download | nextcloud-server-e4f53ff91b985123b171dc23db8246c017af46f6.tar.gz nextcloud-server-e4f53ff91b985123b171dc23db8246c017af46f6.zip |
Add typed events for adding and removing a subadmin
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Group')
-rw-r--r-- | lib/private/Group/Manager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php index 6056bcdb3e3..3d7c1ff176f 100644 --- a/lib/private/Group/Manager.php +++ b/lib/private/Group/Manager.php @@ -41,6 +41,7 @@ namespace OC\Group; use OC\Hooks\PublicEmitter; +use OCP\EventDispatcher\IEventDispatcher; use OCP\GroupInterface; use OCP\IGroup; use OCP\IGroupManager; @@ -416,7 +417,8 @@ class Manager extends PublicEmitter implements IGroupManager { $this->subAdmin = new \OC\SubAdmin( $this->userManager, $this, - \OC::$server->getDatabaseConnection() + \OC::$server->getDatabaseConnection(), + \OC::$server->get(IEventDispatcher::class) ); } |