diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-25 19:38:08 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-27 09:57:54 +0200 |
commit | 35c313e280a63ef96ec321dec07853a7b90cb415 (patch) | |
tree | 477a21a1453ecad4617f53e0bac90917efd54ca9 | |
parent | c67c067ee796d8a466c47458d06a8a0c20f8d5c2 (diff) | |
download | nextcloud-server-35c313e280a63ef96ec321dec07853a7b90cb415.tar.gz nextcloud-server-35c313e280a63ef96ec321dec07853a7b90cb415.zip |
fix!: Remove User events which have a typed event replacement
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/User/User.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index dc4cdec1235..2530173bea4 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -271,8 +271,6 @@ class User implements IUser { * @return bool */ public function delete() { - /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */ - $this->legacyDispatcher->dispatch(IUser::class . '::preDelete', new GenericEvent($this)); if ($this->emitter) { /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */ $this->emitter->emit('\OC\User', 'preDelete', [$this]); @@ -310,8 +308,6 @@ class User implements IUser { $accountManager = \OCP\Server::get(AccountManager::class); $accountManager->deleteUser($this); - /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */ - $this->legacyDispatcher->dispatch(IUser::class . '::postDelete', new GenericEvent($this)); if ($this->emitter) { /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */ $this->emitter->emit('\OC\User', 'postDelete', [$this]); |