Hooks.php 531 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OC\Share20;
  8. use OCP\Share\IManager as IShareManager;
  9. class Hooks {
  10. public static function post_deleteUser($arguments) {
  11. \OC::$server->get(IShareManager::class)->userDeleted($arguments['uid']);
  12. }
  13. public static function post_deleteGroup($arguments) {
  14. \OC::$server->get(IShareManager::class)->groupDeleted($arguments['gid']);
  15. }
  16. }