mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix!: Remove User events which have a typed event replacement
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c67c067ee7
commit
35c313e280
1 changed files with 0 additions and 4 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue