diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2019-07-04 15:39:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 15:39:49 +0300 |
commit | 9092509b7efa243605fd9380b747f64872888f90 (patch) | |
tree | ddf7a3b637170af4e3c2b6905cb3fc1632495fd7 | |
parent | 87387138fa6dec052f039a67efabb2a60e249bfb (diff) | |
parent | 57b529a420ba9cef725d2d51d9bc4577c2fae994 (diff) |
Merge pull request #1951 from nextcloud/bugfix/noid/make-it-compliant-again
Make the app compliant again
-rw-r--r-- | lib/Listener.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Listener.php b/lib/Listener.php index 4c896ff92..e96906003 100644 --- a/lib/Listener.php +++ b/lib/Listener.php @@ -27,6 +27,7 @@ use OCP\Collaboration\AutoComplete\IManager; use OCP\IUser; use OCP\IUserManager; use OCP\IUserSession; +use OCP\Util; use Symfony\Component\EventDispatcher\EventDispatcherInterface; class Listener { @@ -63,7 +64,7 @@ class Listener { $listener->deleteUser($user); }); - \OC_Hook::connect('OC_User', 'logout', self::class, 'logoutUserStatic'); + Util::connectHook('OC_User', 'logout', self::class, 'logoutUserStatic'); $dispatcher->addListener(IManager::class . '::filterResults', function(AutoCompleteEvent $event) { /** @var self $listener */ |