diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-03-19 15:23:30 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-05 12:46:15 +0200 |
commit | 373a1d53918db011ca36351ad8e5240567ad999c (patch) | |
tree | 99277022939c8af14f31c9d35034fe2a9565fd5f /apps/dav/lib/HookManager.php | |
parent | 2ebf26e4447c6c5eef41be35ee4487c78ffe8231 (diff) | |
download | nextcloud-server-373a1d53918db011ca36351ad8e5240567ad999c.tar.gz nextcloud-server-373a1d53918db011ca36351ad8e5240567ad999c.zip |
more consistent naming
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/HookManager.php')
-rw-r--r-- | apps/dav/lib/HookManager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php index a887c6c4387..b1bd039c65e 100644 --- a/apps/dav/lib/HookManager.php +++ b/apps/dav/lib/HookManager.php @@ -77,22 +77,22 @@ class HookManager { 'post_createUser', $this, 'postCreateUser'); - \OC::$server->getUserManager()->listen('\OC\User', 'announceUser', function ($uid) { + \OC::$server->getUserManager()->listen('\OC\User', 'assignedUserId', function ($uid) { $this->postCreateUser(['uid' => $uid]); }); Util::connectHook('OC_User', 'pre_deleteUser', $this, 'preDeleteUser'); - \OC::$server->getUserManager()->listen('\OC\User', 'preRevokeUser', [$this, 'preRevokeUser']); + \OC::$server->getUserManager()->listen('\OC\User', 'preUnassignedUserId', [$this, 'preUnassignedUserId']); Util::connectHook('OC_User', 'post_deleteUser', $this, 'postDeleteUser'); - \OC::$server->getUserManager()->listen('\OC\User', 'postRevokeUser', function ($uid) { + \OC::$server->getUserManager()->listen('\OC\User', 'postUnassignedUserId', function ($uid) { $this->postDeleteUser(['uid' => $uid]); }); - \OC::$server->getUserManager()->listen('\OC\User', 'postRevokeUser', [$this, 'postRevokeUser']); + \OC::$server->getUserManager()->listen('\OC\User', 'postUnassignedUserId', [$this, 'postUnassignedUserId']); Util::connectHook('OC_User', 'changeUser', $this, @@ -111,7 +111,7 @@ class HookManager { $this->addressBooksToDelete = $this->cardDav->getUsersOwnAddressBooks('principals/users/' . $uid); } - public function preRevokeUser($uid) { + public function preUnassignedUserId($uid) { $this->usersToDelete[$uid] = $this->userManager->get($uid); } @@ -131,7 +131,7 @@ class HookManager { } } - public function postRevokeUser($uid) { + public function postUnassignedUserId($uid) { if (isset($this->usersToDelete[$uid])){ $this->syncService->deleteUser($this->usersToDelete[$uid]); } |