Remove old OC_Hook for OC_Group events #24041
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Those mappings exist and we will remove the first ones (labeled as
old
):old:
\OC_Hook::listen('OC_Group', 'pre_createGroup', ...);
since OC 8 (owncloud/core#12618):
$groupManager->listen('\OC\Group', 'preCreate', ...);
since NC 17 (#18350):
OCP\Group\Events\BeforeGroupCreatedEvent
old:
\OC_Hook::emit('OC_User', 'post_createGroup', ...);
since OC 8 (owncloud/core#12618):
$groupManager->listen('\OC\Group', 'postCreate', ...);
since NC 17 (#18350):
OCP\Group\Events\GroupCreatedEvent
old:
\OC_Hook::emit('OC_Group', 'pre_deleteGroup', ...);
since OC 8 (owncloud/core#12618):
$groupManager->listen('\OC\Group', 'preDelete', ...);
since NC 17 (#18350):
OCP\Group\Events\BeforeGroupDeletedEvent
old:
\OC_Hook::emit('OC_User', 'post_deleteGroup', ...);
since OC 8 (owncloud/core#12618):
$groupManager->listen('\OC\Group', 'postDelete', ...);
since NC 17 (#18350):
OCP\Group\Events\GroupDeletedEvent
old:
\OC_Hook::emit('OC_Group', 'pre_addToGroup', ...);
since OC 8 (owncloud/core#12618):
$groupManager->listen('\OC\Group', 'preAddUser', ...);
since NC 17 (#18350):
OCP\Group\Events\BeforeUserAddedEvent
old:
\OC_Hook::emit('OC_Group', 'post_addToGroup', ...);
since OC 8 (owncloud/core#12618):
$groupManager->listen('\OC\Group', 'postAddUser', ...);
since NC 17 (#18350):
OCP\Group\Events\UserAddedEvent
I only found the circles app to still use them: nextcloud/circles#515