]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use old IServerContainer methods 22054/head
authorMorris Jobke <hey@morrisjobke.de>
Thu, 30 Jul 2020 08:04:16 +0000 (10:04 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2020 08:04:16 +0000 (10:04 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/base.php

index 3616d9013a5661cc47f5367024d5003bb9868754..92e459e869e8692fc4814495f6301591275732d9 100644 (file)
@@ -905,7 +905,7 @@ class OC {
                        OC_Hook::connect('OC_User', 'post_deleteGroup', Hooks::class, 'post_deleteGroup');
 
                        /** @var \OCP\EventDispatcher\IEventDispatcher $dispatcher */
-                       $dispatcher = \OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class);
+                       $dispatcher = \OC::$server->query(\OCP\EventDispatcher\IEventDispatcher::class);
                        $dispatcher->addServiceListener(UserRemovedEvent::class, \OC\Share20\UserRemovedListener::class);
                }
        }