We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Used in https://github.com/nextcloud/circles/blob/master/lib/AppInfo/Application.php#L136
Please use:
OCP\Group\Events\GroupDeletedEvent
'OC_User', 'post_deleteGroup'
OCP\User\Events\UserDeletedEvent
'OC_User', 'post_deleteUser'
use OCP\Group\Events\GroupDeletedEvent; use OCA\Circles\Listener\ GroupDeletedListener; ... $dispatcher = $this->get(IEventDispatcher::class); $dispatcher->addServiceListener(GroupDeletedEvent::class, GroupDeletedListener::class);
Ideally this happens in the register() method of the application. (see https://github.com/nextcloud/server/blob/bd6a6cf3bff74dc5690fe032a4203165227f01d2/apps/user_status/lib/AppInfo/Application.php#L70 for an example)
register()
See https://github.com/nextcloud/server/blob/caff1023ea72bb2ea94130e18a2a6e2ccf819e5f/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php for example how the listener can look like.
Those hooks will be dropped in Nextcloud 21 and you can use the new system in all versions starting from Nextcloud 17.
The text was updated successfully, but these errors were encountered:
ArtificialOwl
Successfully merging a pull request may close this issue.
Used in https://github.com/nextcloud/circles/blob/master/lib/AppInfo/Application.php#L136
Please use:
OCP\Group\Events\GroupDeletedEvent
for'OC_User', 'post_deleteGroup'
OCP\User\Events\UserDeletedEvent
for'OC_User', 'post_deleteUser'
Ideally this happens in the
register()
method of the application. (see https://github.com/nextcloud/server/blob/bd6a6cf3bff74dc5690fe032a4203165227f01d2/apps/user_status/lib/AppInfo/Application.php#L70 for an example)See https://github.com/nextcloud/server/blob/caff1023ea72bb2ea94130e18a2a6e2ccf819e5f/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php for example how the listener can look like.
Those hooks will be dropped in Nextcloud 21 and you can use the new system in all versions starting from Nextcloud 17.
The text was updated successfully, but these errors were encountered: