Deprecate BeforeUserRemovedEvent because it can't be triggered in all cases

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-07-30 10:21:03 +02:00
parent 4a7d7e446f
commit 084f5063f2
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@ use OCP\IUser;
/**
* @since 18.0.0
* @deprecated 20.0.0
*/
class BeforeUserRemovedEvent extends Event {
@ -43,6 +44,7 @@ class BeforeUserRemovedEvent extends Event {
/**
* @since 18.0.0
* @deprecated 20.0.0
*/
public function __construct(IGroup $group, IUser $user) {
parent::__construct();
@ -53,6 +55,7 @@ class BeforeUserRemovedEvent extends Event {
/**
* @return IGroup
* @since 18.0.0
* @deprecated 20.0.0
*/
public function getGroup(): IGroup {
return $this->group;
@ -61,6 +64,7 @@ class BeforeUserRemovedEvent extends Event {
/**
* @return IUser
* @since 18.0.0
* @deprecated 20.0.0
*/
public function getUser(): IUser {
return $this->user;