Listen to IUser::postDelete

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-02-24 08:54:24 +01:00
parent 37e6488206
commit ba2b542775
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Listener {
$dispatcher->addListener(IGroup::class . '::postAddUser', $listener);
$dispatcher->addListener(IGroup::class . '::postRemoveUser', $listener);
$dispatcher->addListener(IGroup::class . '::postDelete', function(GenericEvent $event) {
$dispatcher->addListener(IUser::class . '::postDelete', function(GenericEvent $event) {
/** @var IUser $user */
$user = $event->getSubject();
/** @var IManager $resourceManager */