1
0

PublicEmitter.php 677 B

123456789101112131415161718192021222324
  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\Hooks;
  8. /**
  9. * @deprecated 18.0.0 use events and the \OCP\EventDispatcher\IEventDispatcher service
  10. */
  11. class PublicEmitter extends BasicEmitter {
  12. /**
  13. * @param string $scope
  14. * @param string $method
  15. * @param array $arguments optional
  16. * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher::dispatchTyped
  17. *
  18. * @suppress PhanAccessMethodProtected
  19. */
  20. public function emit($scope, $method, array $arguments = []) {
  21. parent::emit($scope, $method, $arguments);
  22. }
  23. }