diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-04 21:19:16 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-04 21:19:16 +0100 |
commit | fd3d7c394ad863f631b1909c5471529de39e2f18 (patch) | |
tree | 54b5da7ea0e04c12e4f2d8a63782b9ade3685c36 /lib/private/User | |
parent | eb9faa7bdbb5db60a4189299196b894e12dd795d (diff) | |
download | nextcloud-server-fd3d7c394ad863f631b1909c5471529de39e2f18.tar.gz nextcloud-server-fd3d7c394ad863f631b1909c5471529de39e2f18.zip |
Deprecate old user manager events for user creation
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/User')
-rw-r--r-- | lib/private/User/Manager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index eceeed20504..debe2f14f2e 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -365,6 +365,7 @@ class Manager extends PublicEmitter implements IUserManager { throw new \InvalidArgumentException($l->t('The username is already being used')); } + /** @depreacted 21.0.0 use CreateUserEvent event with the IEventDispatcher instead */ $this->emit('\OC\User', 'preCreateUser', [$uid, $password]); $this->eventDispatcher->dispatchTyped(new CreateUserEvent($uid, $password)); $state = $backend->createUser($uid, $password); @@ -373,6 +374,7 @@ class Manager extends PublicEmitter implements IUserManager { } $user = $this->getUserObject($uid, $backend); if ($user instanceof IUser) { + /** @depreacted 21.0.0 use UserCreatedEvent event with the IEventDispatcher instead */ $this->emit('\OC\User', 'postCreateUser', [$user, $password]); $this->eventDispatcher->dispatchTyped(new UserCreatedEvent($user, $password)); } |